mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-10 23:29:12 +08:00
Always use TypeAlias when assigning to Any (#8021)
This commit is contained in:
1 parent
a2ba0c8a00
commit
43a9ab08d7
17 files changed
+65
-45
No files matched your search
@@ -3,6 +3,7 @@ from _typeshed import Self
|
||||
from collections.abc import Callable, Iterable, Iterator
|
||||
from contextlib import AbstractContextManager
|
||||
from typing import Any
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from ._common import (
|
||||
AIX as AIX,
|
||||
@@ -108,8 +109,8 @@ elif sys.platform == "darwin":
|
||||
elif sys.platform == "win32":
|
||||
from ._pswindows import pfullmem, pmem
|
||||
else:
|
||||
pmem = Any
|
||||
pfullmem = Any
|
||||
pmem: TypeAlias = Any
|
||||
pfullmem: TypeAlias = Any
|
||||
|
||||
if sys.platform == "linux":
|
||||
PROCFS_PATH: str
|
||||
|
||||
Reference in new issue
Block a user