mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-12 16:10:12 +08:00
Update mypy to 1.18.1 (#14699)
This commit is contained in:
1 parent
59c36c8bf9
commit
4b0623f4fb
31 files changed
+70
-108
No files matched your search
@@ -1,7 +1,7 @@
|
||||
from _typeshed import MaybeNone
|
||||
from collections.abc import Callable, Iterable
|
||||
from typing import Any, Final, Generic, TypeVar, type_check_only
|
||||
from typing_extensions import TypeAlias
|
||||
from typing_extensions import Self, TypeAlias
|
||||
|
||||
__all__ = [
|
||||
"LUA_VERSION",
|
||||
@@ -78,7 +78,7 @@ class LuaRuntime:
|
||||
lua_implementation: Final[str]
|
||||
lua_version: Final[tuple[int, int]]
|
||||
|
||||
def __init__(self, /, unpack_returned_tuples: bool) -> None: ...
|
||||
def __new__(cls, /, unpack_returned_tuples: bool) -> Self: ...
|
||||
# def add_pending_unref(self, ref: int) -> None: ...
|
||||
# def clean_up_pending_unrefs(self) -> int: ...
|
||||
def get_max_memory(self, total: bool = False) -> int | MaybeNone: ...
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from _typeshed import MaybeNone
|
||||
from collections.abc import Callable, Iterable
|
||||
from typing import Any, Final, Generic, TypeVar, type_check_only
|
||||
from typing_extensions import TypeAlias
|
||||
from typing_extensions import Self, TypeAlias
|
||||
|
||||
__all__ = [
|
||||
"LUA_VERSION",
|
||||
@@ -78,7 +78,7 @@ class LuaRuntime:
|
||||
lua_implementation: Final[str]
|
||||
lua_version: Final[tuple[int, int]]
|
||||
|
||||
def __init__(self, /, unpack_returned_tuples: bool) -> None: ...
|
||||
def __new__(cls, /, unpack_returned_tuples: bool) -> Self: ...
|
||||
# def add_pending_unref(self, ref: int) -> None: ...
|
||||
# def clean_up_pending_unrefs(self) -> int: ...
|
||||
def get_max_memory(self, total: bool = False) -> int | MaybeNone: ...
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from _typeshed import MaybeNone
|
||||
from collections.abc import Callable, Iterable
|
||||
from typing import Any, Final, Generic, TypeVar, type_check_only
|
||||
from typing_extensions import TypeAlias
|
||||
from typing_extensions import Self, TypeAlias
|
||||
|
||||
__all__ = [
|
||||
"LUA_VERSION",
|
||||
@@ -78,7 +78,7 @@ class LuaRuntime:
|
||||
lua_implementation: Final[str]
|
||||
lua_version: Final[tuple[int, int]]
|
||||
|
||||
def __init__(self, /, unpack_returned_tuples: bool) -> None: ...
|
||||
def __new__(cls, /, unpack_returned_tuples: bool) -> Self: ...
|
||||
# def add_pending_unref(self, ref: int) -> None: ...
|
||||
# def clean_up_pending_unrefs(self) -> int: ...
|
||||
def get_max_memory(self, total: bool = False) -> int | MaybeNone: ...
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from _typeshed import MaybeNone
|
||||
from collections.abc import Callable, Iterable
|
||||
from typing import Any, Final, Generic, TypeVar, type_check_only
|
||||
from typing_extensions import TypeAlias
|
||||
from typing_extensions import Self, TypeAlias
|
||||
|
||||
__all__ = [
|
||||
"LUA_VERSION",
|
||||
@@ -78,7 +78,7 @@ class LuaRuntime:
|
||||
lua_implementation: Final[str]
|
||||
lua_version: Final[tuple[int, int]]
|
||||
|
||||
def __init__(self, /, unpack_returned_tuples: bool) -> None: ...
|
||||
def __new__(cls, /, unpack_returned_tuples: bool) -> Self: ...
|
||||
# def add_pending_unref(self, ref: int) -> None: ...
|
||||
# def clean_up_pending_unrefs(self) -> int: ...
|
||||
def get_max_memory(self, total: bool = False) -> int | MaybeNone: ...
|
||||
|
||||
Reference in new issue
Block a user