mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
Update mypy_extensions stubs to 1.0.x (#9675)
This commit is contained in:
@@ -1,2 +1,6 @@
|
||||
mypy_extensions.FlexibleAlias
|
||||
mypy_extensions.TypedDict
|
||||
mypy_extensions.i64.*
|
||||
mypy_extensions.i32.*
|
||||
mypy_extensions.i16.*
|
||||
mypy_extensions.u8.*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
version = "0.4.*"
|
||||
version = "1.0.*"
|
||||
|
||||
[tool.stubtest]
|
||||
ignore_missing_stub = false
|
||||
|
||||
@@ -68,3 +68,11 @@ def trait(cls: _T) -> _T: ...
|
||||
def mypyc_attr(*attrs: str, **kwattrs: object) -> IdentityFunction: ...
|
||||
|
||||
class FlexibleAlias(Generic[_T, _U]): ...
|
||||
|
||||
# Mypy and mypyc treat these native int types as different from 'int', but this is
|
||||
# a non-standard extension. For other tools, aliasing these to 'int' allows them
|
||||
# to mostly do the right thing with these types.
|
||||
i64 = int
|
||||
i32 = int
|
||||
i16 = int
|
||||
u8 = int
|
||||
|
||||
Reference in New Issue
Block a user