mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-07 04:34:33 +08:00
Use typing_extensions.Self in the stdlib (#9694)
This commit is contained in:
1 parent
10086c06a1
commit
9ed39d8796
98 files changed
+627
-654
No files matched your search
+3
-2
@@ -1,6 +1,7 @@
|
||||
from _typeshed import Self, Unused
|
||||
from _typeshed import Unused
|
||||
from types import ModuleType
|
||||
from typing import Any
|
||||
from typing_extensions import Self
|
||||
|
||||
__all__ = ["run_module", "run_path"]
|
||||
|
||||
@@ -8,7 +9,7 @@ class _TempModule:
|
||||
mod_name: str
|
||||
module: ModuleType
|
||||
def __init__(self, mod_name: str) -> None: ...
|
||||
def __enter__(self: Self) -> Self: ...
|
||||
def __enter__(self) -> Self: ...
|
||||
def __exit__(self, *args: Unused) -> None: ...
|
||||
|
||||
class _ModifiedArgv0:
|
||||
|
||||
Reference in new issue
Block a user