pytype
- No package docstring; 51/52 modules, 1/14 package documented__version__
- Undocumentedabstract
- No package docstring; 18/18 modules documentedabstract
- The abstract values used by vm.py.abstract_test
- Tests for abstract.py.abstract_utils
- Utilities for abstract.py.abstract_utils_test
- Tests for abstract_utils.py.class_mixin
- Mixin for all class-like abstract classes.function
- Representation of Python function headers and calls.mixin
- Mixins for abstract.py.mixin_test
- Tests for mixin.py._base
- Base value for abstract classes._classes
- Abstract class representations._function_base
- Base abstract representations of functions._instance_base
- Abstract representation of instances._instances
- Specialized instance representations._interpreter_function
- Abstract representation of functions defined in the module under analysis._pytd_function
- Abstract representation of a function loaded from a type stub._singletons
- Singleton abstract values._special_classes
- Classes that need special handling, typically due to code generation._typing
- Constructs related to type annotations.analyze
- Code for checking and inferring types.annotation_utils
- Utilities for inline type annotations.ast
- No package docstring; 3/3 modules documenteddebug
- Debugging utilities.visitor
- AST visiting.visitor_test
- Tests for traces.visitor.attribute
- Abstract attribute handling.attribute_test
- Tests for attribute.py.blocks
- No package docstring; 2/2 modules documentedblocks
- Functions for computing the execution order of bytecode.blocks_test
- Tests for blocks.py.compare
- Do comparisons involving abstract values.compare_test
- Tests for compare.py.config
- Configuration for pytype (mostly derived from the commandline args).config_test
- Tests for config.py.constant_folding
- Constant folding optimisation for bytecode.constant_folding_test
- Tests for constant_folding.py.context
- Container of things that should be accessible to all abstract values.convert
- Code for translating between type systems.convert_structural
- Solver for type equations.convert_test
- Tests for convert.py.datatypes
- Generic data structures and collection classes.datatypes_test
- Tests for datatypes.py.debug
- Debugging helper functions.debug_test
- Tests for utils.py.directors
- No package docstring; 4/4 modules documenteddirectors
- Code and data structures for managing source directives.directors_test
- Tests for directors.py.parser
- Source code parser.parser_libcst
- LibCST-based parser.errors
- Code and data structures for storing and displaying errors.errors_test
- Test errors.py.file_utils
- File and path utilities.file_utils_test
- Tests for file_utils.py.imports
- No package docstring; 8/8 modules documentedbase
- Interface for module loaders.builtin_stubs
- Utilities for parsing pytd files for builtins.builtin_stubs_test
- Tests for pytype.pytd.parse.builtins.module_loader
- Load module type information from the filesystem.pickle_utils
- Pickle file loading and saving.pickle_utils_test
- Tests for pickle_utils.py.typeshed
- Utilities for parsing typeshed files.typeshed_test
- Tests for typeshed.py.imports_map_loader
- Import and set up the imports_map.imports_map_loader_test
- Tests for imports_map_loader.py.inspect
- No package docstring; 2/2 modules documentedgraph
- Inspect the CFG and typegraph.graph_test
- Tests for inspect.graph.io
- Public interface to top-level pytype functions.io_test
- Tests for io.py.load_pytd
- Load and link .pyi files.load_pytd_test
- Tests for load_pytd.py.matcher
- Matching logic for abstract values.matcher_test
- Tests for matcher.py.metrics
- Classes for instrumenting code to collect various metrics.metrics_test
- Test errors.py.module_utils
- Representation of modules.module_utils_test
- Tests for module_utils.py.output
- Tools for output generation.overlays
- No package docstring; 24/24 modules documentedabc_overlay
- Implementation of special members of Python's abc library.asyncio_types_overlay
- Implementation of special members of types and asyncio module.attr_overlay
- Support for the 'attrs' library.chex_overlay
- Overlay for third-party chex.dataclass decorator.classgen
- Base support for generating classes from data declarations.collections_overlay
- Implementation of types from Python 2's collections library.dataclass_overlay
- Support for dataclasses.enum_overlay
- Overlay for the enum standard library.flax_overlay
- Support for flax.struct dataclasses.functools_overlay
- Overlay for functools.future_overlay
- Implementation of special members of the future library.metaclass
- Add metaclasses to classes.named_tuple
- Implementation of named tuples.overlay
- Base class for module overlays.overlay_dict
- A dictionary of module names to pytype overlays.overlay_utils
- Utilities for writing overlays.pytype_extensions_overlay
- Implementation of special members of pytype_extensions.six_overlay
- Implementation of special members of third_party/six.special_builtins
- Custom implementations of builtin types.subprocess_overlay
- Support for the 'subprocess' library.sys_overlay
- Implementation of special members of sys.typed_dict
- Implementation of TypedDict.typing_extensions_overlay
- Implementation of special members of typing_extensions.typing_overlay
- Implementation of the types in Python 3's typing.py.overriding_checks
- Utilities for checking function overrides used in vm.py.platform_utils
- No package docstring; 2/2 modules documentedpath_utils
- Wraps some path-related functions in `os`, `os.path` and `glob`.tempfile
- Platform-independent functions for creating temp files & directories.preprocess
- Preprocess source code before compilation.pyc
- pyc file format parser.compile_bytecode
- Compiles a single .py to a .pyc and writes it to stdout.compiler
- Python executable used to compile to bytecode.compiler_test
- Tests for compiler.py.generate_opcode_diffs
- Generate code diffs for opcode changes between Python versions.generate_opcode_diffs_test
- Test pyc/generate_opcode_diffs.py.loadmarshal
- Parser for the "marshal" file format.loadmarshal_test
- Tests for loadmarshal.py.magic
- Python version numbers and their encoding ("magic number").magic_test
- Tests for magic.py.opcodes
- Opcode definitions.opcodes_test
- No module docstring; 3/4 classes documentedpyc
- Functions for generating, reading and parsing pyc.pyc_test
- Tests for pyc.py.pyi
- No package docstring; 15/16 modules documentedclassdef
- Class definitions in pyi files.conditions
- Process conditional blocks in pyi files.definitions
- Construct and collect pytd definitions to build a TypeDeclUnit.entire_file_parser_test
- Entire-file parsing test.evaluator
- Evaluate subtrees corresponding to python literals.evaluator_test
- Tests for pytype.pyi.evaluator.function
- Function definitions in pyi files.metadata
- Support for PEP593 (typing.Annotated) metadata.metadata_test
- Tests for pytype.pyi.metadata.modules
- Handling of module and package related details.parse_pyi
- Testing code to run the typed_ast based pyi parser.parser
- Parse a pyi file using typed_ast.parser_test
- No module docstring; 4/28 classes documentedparser_test_base
- Base code for pyi parsing tests.types
- Common datatypes and pytd utilities.visitor
- Base visitor for typed_ast parse trees.pytd
- No package docstring; 26/32 modules, 0/2 package documentedabc_hierarchy
- Hierarchy of abstract base classes, from _collections_abc.py.abc_hierarchy_test
- Tests for abc_hierarchy.py.base_visitor
- Base class for visitors.base_visitor_test
- Tests for pytd_visitors.booleq
- Data structures and algorithms for boolean equations.booleq_test
- Tests for booleq.py.codegen
- No package docstring; 4/4 modules documenteddecorate
- Apply decorators to classes and functions.function
- Function definitions in pyi files.namedtuple
- Generate pytd classes for named tuples.pytdgen
- Utilities to generate some basic types.escape
- Utilities for quoting, name-mangling, etc.main
- Tool for processing pytd files.main_test
- Tests for pytd_tool (pytd/main.py).mro
- Code related to sequence merging and MRO.mro_test
- No module docstring; 1/1 class documentedoptimize
- Functions for optimizing pytd syntax trees.optimize_test
- No module docstring; 1/1 function, 1/1 class documentedparse
- No package docstring; 3/4 modules documentednode
- Base node class used to represent immutable trees.node_test
- No module docstring; 13/13 classes documentedparser_constants
- Parser constants that are used by parser.py and visitors.py.parser_test_base
- Utility classes for testing the PYTD parser.pep484
- PEP484 compatibility code.pep484_test
- No module docstring; 1/1 class documentedprinter
- Printer to output pytd trees in pyi format.pytd
- Internal representation of pytd nodes.pytd_test
- Tests for pytd.py.pytd_utils
- Utilities for pytd.pytd_utils_test
- No module docstring; 2/2 classes documentedpytd_visitors
- Visitor(s) for walking ASTs.pytd_visitors_test
- Tests for pytd_visitors.serialize_ast
- Converts pyi files to pickled asts and saves them to disk.serialize_ast_test
- Undocumentedslots
- Mapping between slot / operator names.slots_test
- Tests for slots.py.transforms
- Functions and visitors for transforming pytd.transforms_test
- Tests for transforms.py.type_match
- Match pytd types against each other.type_match_test
- Tests for type_match.py.visitors
- Visitor(s) for walking ASTs.visitors_test
- No module docstring; 0/1 constant, 0/1 function, 1/3 class documentedpytype_source_utils
- Utilities for working with pytype source files.pytype_source_utils_test
- Tests for pytype_source_utils.py.single
- Tool for inferring types from Python programs.single_test
- Integration test for pytype.state
- Objects modelling VM state. (Frames etc.).state_test
- Test state.py.test_data
- No package docstring; 7/11 modules, 0/1 package documentedbad
- An errorful test program.complex
- Too-complex program.constant
- Test constant folding.imports
- Module doing nothing but importing another module.perf
- Undocumentedfunctions_dict
- Undocumentediso
- Undocumentedpytree
- Python parse tree definitions.simple
- Trivial test program.syntax
- Undocumentedtokenerror1
- Undocumentedtokenerror2
- Undocumentedtokenize
- Test case for functions with complex cfg.yield_from
- Undocumentedtools
- No package docstring; 9/9 modules, 0/6 package documentedanalyze_project
- No package docstring; 8/8 modules documentedconfig
- Config file processing.config_test
- Tests for config.py.environment
- Utils for creating importlab environment.main
- Analyze an entire project using pytype.parse_args
- Argument parsing for analyze_project.parse_args_test
- Tests for parse_args.py.pytype_runner
- Use pytype to analyze and infer types for an entire project.pytype_runner_test
- Tests for pytype_runner.py.annotate_ast
- No package docstring; 2/3 modules documentedannotate_ast
- Library to take a Python AST and add Pytype type information to it.annotate_ast_test
- Undocumentedmain
- Call annotate_ast on a source file.arg_parser
- Argument parsing for tools that pass args on to pytype_single.arg_parser_test
- Tests for arg_parser.config
- Utilities for dealing with project configuration.config_test
- Tests for config.py.debugger
- No package docstring; 2/2 modules documentedmain
- Run pytype and display debug information.visualizer
- Library for creating visualizations of the pytype typegraph.environment
- Initializes and checks the environment needed to run pytype.environment_test
- Tests for environment.py.merge_pyi
- No package docstring; 3/4 modules, 0/1 package documentedmain
- Merge .pyi file annotations into a .py file.merge_project
- Merge in annotations across a project tree.merge_pyi
- Merges type annotations from pyi files into the corresponding py files.merge_pyi_test
- Undocumentedtest_data
- No package docstring; 7/47 modules documentedany
- Test typing.Any (comment only).async
- Undocumentedasync.pep484
- Undocumenteddecoration
- Undocumenteddecoration.pep484
- Undocumenteddefaults
- Undocumenteddefaults.pep484
- Undocumentedheuristics
- Undocumentedheuristics.pep484
- Undocumentedimports
- Undocumentedimports.pep484
- Undocumentedimports_alias
- Test import-as.imports_alias.pep484
- Test import-as.imports_multiple
- Test multiple from-imports.imports_multiple.pep484
- Test multiple from-imports.imports_notouch
- Undocumentedimports_notouch.pep484
- Undocumentedmember_var
- Undocumentedmember_var.pep484
- Undocumentedmismatch
- Undocumentedmismatch.pep484
- Undocumentednonearg
- Undocumentednonearg.pep484
- Undocumentedoneliner
- Undocumentedoneliner.pep484
- Undocumentedparse_error
- Undocumentedpartial
- Undocumentedpartial.pep484
- Undocumentedpyi_variations
- Undocumentedpyi_variations.pep484
- Undocumentedredefine
- Undocumentedredefine.pep484
- Undocumentedretval_heuristics
- Undocumentedretval_heuristics.pep484
- Undocumentedscope
- Undocumentedscope.pep484
- Undocumentedsimple
- No module docstring; 1/3 function documentedsimple.pep484
- No module docstring; 1/3 function documentedsimple_defaults
- Undocumentedstars
- Undocumentedstars.pep484
- Undocumentedtrailing_comma
- Undocumentedtrailing_comma.pep484
- Undocumentedtypevar
- TypeVar test.typevar.pep484
- TypeVar test.var_annot
- Undocumentedvar_annot.pep484
- Undocumentedrunner
- Utilities to deal with running subprocesses.tool_utils
- Utility functions.tool_utils_test
- Tests for tool_utils.py.traces
- No package docstring; 5/5 modules documentedrun
- Trace the types in a file.source
- Source and trace information.source_test
- Tests for traces.source.traces
- A library for accessing pytype's inferred local types.traces_test
- Tests for traces.traces.xref
- No package docstring; 10/12 modules documentedcallgraph
- Trace function arguments, return values and calls to other functions.callgraph_test
- No module docstring; 1/1 class documenteddebug
- Debug utils for working with the indexer and the AST.indexer
- Generate cross references from a project.indexer_test
- No module docstring; 2/4 classes documentedkythe
- Kythe graph structure.main
- Generate cross references from a project.node_utils
- Utility functions for ast nodes.output
- Output utilities for xref.parse_args
- Parse command line arguments for xref.parse_args_test
- Tests for parse_args.py.utils
- Utilities for xref.tracer_vm
- Code for checking and inferring types.typegraph
- No package docstring; 6/6 modules documentedcfg
- Points-to / dataflow / cfg graph engine.cfg_test
- Test for the cfg Python extension module.cfg_utils
- Utilities for working with the CFG.cfg_utils_test
- Tests for the additional CFG utilities.typegraph_serializer
- Serialize typegraphs into JSON.typegraph_serializer_test
- Tests for typegraph_serializer.py.typegraph_metrics_test
- Basic tests for accessing typegraph metrics from Python.utils
- Generic functions.utils_test
- Tests for utils.py.vm
- An abstract virtual machine for python bytecode.vm_test
- Tests for vm.py.vm_utils
- Utilities used in vm.py.__main__
- This allows running pytype as `python -m pytype`.