forked from python/typing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* main: (29 commits) Updated conformance test results for the latest versions of type chec… (python#1904) Add content from typeshed/CONTRIBUTING.md (python#1882) Fix markup in generics specification (python#1900) Specs clarification: Forbid `ClassVar` and `Final` within `TypedDict` body (python#1890) Remove paragraph mentioning minor edits through the mailing list (python#1891) Writing Stubs: Add "Overloads and Flags" section (python#1894) Fix a typo (python#1893) Update conformance tests for recent generics spec change (python#1892) Clarify some behavior around user-defined generic classes (python#1879) Modernizing guide: Mention TypeGuard/TypeIs (python#1887) Tools can perform "some" refactorings (python#1886) Mention use of cast in enum type stub example (python#1877) Update conformance results after new pyre release (python#1878) Add a label for typed dictionaries class-based syntax (python#1873) Add missing return type to generic_syntax_infer_variance.py (python#1871) Updated conformance results for mypy 1.13 and pyright 1.1.386 (python#1870) Modernizing guide: also mention `com2ann` (python#1869) Suggest `pyupgrade` or `ruff` for modernizing superseded typing features (python#1868) Updated conformance results for pyright 1.1.385. (python#1867) Updated conformance results for mypy 1.12. (python#1866) ...
- Loading branch information
Showing
342 changed files
with
9,966 additions
and
4,540 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,18 @@ | ||
conformant = "Unsupported" | ||
notes = """ | ||
Does not support @deprecated. | ||
""" | ||
conformance_automated = "Fail" | ||
conformant = "Pass" | ||
conformance_automated = "Pass" | ||
errors_diff = """ | ||
Line 18: Expected 1 errors | ||
Line 24: Expected 1 errors | ||
Line 25: Expected 1 errors | ||
Line 30: Expected 1 errors | ||
Line 41: Expected 1 errors | ||
Line 42: Expected 1 errors | ||
Line 44: Expected 1 errors | ||
Line 47: Expected 1 errors | ||
Line 48: Expected 1 errors | ||
Line 58: Expected 1 errors | ||
Line 69: Expected 1 errors | ||
Line 98: Expected 1 errors | ||
""" | ||
output = """ | ||
directives_deprecated.py:18: error: class _directives_deprecated_library.Ham is deprecated: Use Spam instead [deprecated] | ||
directives_deprecated.py:24: error: function _directives_deprecated_library.norwegian_blue is deprecated: It is pining for the fjords [deprecated] | ||
directives_deprecated.py:25: error: function _directives_deprecated_library.norwegian_blue is deprecated: It is pining for the fjords [deprecated] | ||
directives_deprecated.py:30: error: overload def (x: builtins.int) -> builtins.str of function _directives_deprecated_library.foo is deprecated: Only str will be allowed [deprecated] | ||
directives_deprecated.py:41: error: function _directives_deprecated_library.Spam.__add__ is deprecated: There is enough spam in the world [deprecated] | ||
directives_deprecated.py:42: error: function _directives_deprecated_library.Spam.__add__ is deprecated: There is enough spam in the world [deprecated] | ||
directives_deprecated.py:44: error: function _directives_deprecated_library.Spam.greasy is deprecated: All spam will be equally greasy [deprecated] | ||
directives_deprecated.py:47: error: function _directives_deprecated_library.Spam.shape is deprecated: Shapes are becoming immutable [deprecated] | ||
directives_deprecated.py:48: error: function _directives_deprecated_library.Spam.shape is deprecated: Shapes are becoming immutable [deprecated] | ||
directives_deprecated.py:58: error: function directives_deprecated.Invocable.__call__ is deprecated: Deprecated [deprecated] | ||
directives_deprecated.py:69: error: function directives_deprecated.lorem is deprecated: Deprecated [deprecated] | ||
directives_deprecated.py:98: error: function directives_deprecated.SupportsFoo1.foo is deprecated: Deprecated [deprecated] | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
conformant = "Partial" | ||
notes = """ | ||
Does not reject the use of a constraint parameterized by another type variable. | ||
""" | ||
conformant = "Pass" | ||
output = """ | ||
generics_basic.py:40: error: Value of type variable "AnyStr" of "concat" cannot be "Sequence[object]" [type-var] | ||
generics_basic.py:41: error: Value of type variable "AnyStr" of "concat" cannot be "Sequence[object]" [type-var] | ||
generics_basic.py:49: error: Type variable must have at least two constrained types [misc] | ||
generics_basic.py:55: error: TypeVar constraint type cannot be parametrized by type variables [misc] | ||
generics_basic.py:69: error: Value of type variable "AnyStr" of "concat" cannot be "Sequence[object]" [type-var] | ||
generics_basic.py:121: error: Duplicate type variables in Generic[...] or Protocol[...] [misc] | ||
generics_basic.py:157: error: Invalid index type "int" for "MyMap1[str, int]"; expected type "str" [index] | ||
generics_basic.py:158: error: Invalid index type "int" for "MyMap2[int, str]"; expected type "str" [index] | ||
generics_basic.py:191: error: Dynamic metaclass not supported for "GenericMetaInstance" [misc] | ||
generics_basic.py:191: error: Type variable "generics_basic.T" is unbound [valid-type] | ||
generics_basic.py:191: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class) | ||
generics_basic.py:191: note: (Hint: Use "T" in function signature to bind "T" inside a function) | ||
generics_basic.py:162: error: Free type variable expected in Generic[...] [misc] | ||
generics_basic.py:163: error: Free type variable expected in Protocol[...] [misc] | ||
generics_basic.py:171: error: If Generic[...] or Protocol[...] is present it should list all type variables [misc] | ||
generics_basic.py:172: error: If Generic[...] or Protocol[...] is present it should list all type variables [misc] | ||
generics_basic.py:208: error: Dynamic metaclass not supported for "GenericMetaInstance" [misc] | ||
generics_basic.py:208: error: Type variable "generics_basic.T" is unbound [valid-type] | ||
generics_basic.py:208: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class) | ||
generics_basic.py:208: note: (Hint: Use "T" in function signature to bind "T" inside a function) | ||
""" | ||
conformance_automated = "Fail" | ||
conformance_automated = "Pass" | ||
errors_diff = """ | ||
Line 55: Expected 1 errors | ||
""" |
Oops, something went wrong.