FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [View Raw Code]   [Original HTTPS Page]

pytype/docs/support.md at master · i-spark/pytype · GitHub

/ pytype Public
forked from google/pytype

Latest commit

 

History

History
119 lines (100 loc) · 5.48 KB

File metadata and controls

119 lines (100 loc) · 5.48 KB

Support

This page lists the Python versions and features supported by the latest version of pytype.

Python Version

  • Analyzes: Whether pytype can analyze code written for this version
  • Runs In: Whether pytype itself can run in this version
  • Issue: Tracking issue for dropping support (older versions) or adding it (upcoming versions), if applicable
Version Analyzes Runs In Issue
2.7 #545
3.5 #677
3.6
3.7
3.8
3.9
3.10

Features

  • Supports: ✅ (yes), ❌ (no), or 🟡 (partial)
  • Issues: Notable issue(s), if applicable

Core

Note: pytype supports all language and stdlib features in its supported versions unless noted otherwise. This section lists features that are difficult to type for which pytype has or intends to add custom support.

Feature Supports Issues
Control Flow Analysis ("Type Narrowing")
collections.namedtuple
Dataclasses
Enums 🟡 #788

Typing

Feature Supports Issues
PEP 484 -- Type Hints
PEP 526 -- Syntax for Variable Annotations
PEP 544 -- Protocols
PEP 561 -- Distributing and Packaging Type Information #151
PEP 563 -- Postponed Evaluation of Annotations
PEP 585 -- Type Hinting Generics in Standard Collections
PEP 586 -- Literal Types 🟡 #790
PEP 589 -- TypedDict #680
PEP 591 -- Adding a Final Qualifier to Typing #680
PEP 593 -- Flexible Function and Variable Annotations
PEP 604 -- Allow Writing Union Types as X | Y #785
PEP 612 -- Parameter Specification Variables #786
PEP 613 -- Explicit Type Aliases #787
PEP 647 -- User-Defined Type Guards #916
Custom Recursive Types #407
Generic Type Aliases Requires --preserve-union-macros flag
Type Annotation Inheritance #81

Third-Party Libraries

Note: This section does not list all third-party libraries that pytype supports, only the ones that are difficult to type for which pytype has or intends to add custom support.

Feature Supports Issues
Attrs
Flax 🟡 Google-internal
Numpy 🟡 Minimal type stub
Tensorflow 🟡 Minimal, Google-internal

Back | FazBrowse Home | New Git URL