Update mypy_extensions stubs to 1.0.x (#9675)

This commit is contained in:
Jukka Lehtosalo
2023-02-04 12:54:39 +00:00
committed by GitHub
parent 1e3d762a12
commit bba1c67610
3 changed files with 13 additions and 1 deletions

View File

@@ -1,2 +1,6 @@
mypy_extensions.FlexibleAlias
mypy_extensions.TypedDict
mypy_extensions.i64.*
mypy_extensions.i32.*
mypy_extensions.i16.*
mypy_extensions.u8.*

View File

@@ -1,4 +1,4 @@
version = "0.4.*"
version = "1.0.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -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