mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Use AbstractSet instead of set in random and inspect (#6574)
This commit is contained in:
@@ -3,7 +3,7 @@ import sys
|
||||
import types
|
||||
from _typeshed import Self
|
||||
from collections import OrderedDict
|
||||
from collections.abc import Awaitable, Callable, Generator, Mapping, Sequence
|
||||
from collections.abc import Awaitable, Callable, Generator, Mapping, Sequence, Set as AbstractSet
|
||||
from types import (
|
||||
AsyncGeneratorType,
|
||||
BuiltinFunctionType,
|
||||
@@ -317,7 +317,7 @@ class ClosureVars(NamedTuple):
|
||||
nonlocals: Mapping[str, Any]
|
||||
globals: Mapping[str, Any]
|
||||
builtins: Mapping[str, Any]
|
||||
unbound: set[str]
|
||||
unbound: AbstractSet[str]
|
||||
|
||||
def getclosurevars(func: Callable[..., Any]) -> ClosureVars: ...
|
||||
def unwrap(func: Callable[..., Any], *, stop: Callable[[Any], Any] | None = ...) -> Any: ...
|
||||
|
||||
Reference in New Issue
Block a user