mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-23 11:32:07 +08:00
Big diff: Use new "|" union syntax (#5872)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from _typeshed import Self
|
||||
from types import ModuleType
|
||||
from typing import Any, Dict, Optional
|
||||
from typing import Any, Dict
|
||||
|
||||
class _TempModule:
|
||||
mod_name: str = ...
|
||||
@@ -16,6 +16,6 @@ class _ModifiedArgv0:
|
||||
def __exit__(self, *args: Any) -> None: ...
|
||||
|
||||
def run_module(
|
||||
mod_name: str, init_globals: Optional[Dict[str, Any]] = ..., run_name: Optional[str] = ..., alter_sys: bool = ...
|
||||
mod_name: str, init_globals: Dict[str, Any] | None = ..., run_name: str | None = ..., alter_sys: bool = ...
|
||||
) -> Dict[str, Any]: ...
|
||||
def run_path(path_name: str, init_globals: Optional[Dict[str, Any]] = ..., run_name: Optional[str] = ...) -> Dict[str, Any]: ...
|
||||
def run_path(path_name: str, init_globals: Dict[str, Any] | None = ..., run_name: str | None = ...) -> Dict[str, Any]: ...
|
||||
|
||||
Reference in New Issue
Block a user