mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-19 12:21:27 +08:00
Do not use True or False as default values in assignments (#7060)
This commit is contained in:
1 parent
d43639d289
commit
dbb5488b31
3 files changed
+6
-6
No files matched your search
@@ -37,7 +37,7 @@ _F = TypeVar("_F", bound=Callable[..., Any])
|
||||
def final(f: _F) -> _F: ...
|
||||
def overload(f: _F) -> _F: ...
|
||||
|
||||
Literal: _SpecialForm
|
||||
Literal: _SpecialForm = ...
|
||||
# TypedDict is a (non-subscriptable) special form.
|
||||
TypedDict: object
|
||||
|
||||
@@ -304,7 +304,7 @@ class MutableMapping(Mapping[_KT, _VT], Generic[_KT, _VT]):
|
||||
|
||||
Text = unicode
|
||||
|
||||
TYPE_CHECKING = True
|
||||
TYPE_CHECKING: Literal[True]
|
||||
|
||||
class IO(Iterator[AnyStr], Generic[AnyStr]):
|
||||
# TODO detach
|
||||
|
||||
+1
-1
@@ -502,7 +502,7 @@ class MutableMapping(Mapping[_KT, _VT], Generic[_KT, _VT]):
|
||||
|
||||
Text = str
|
||||
|
||||
TYPE_CHECKING = True
|
||||
TYPE_CHECKING: _Literal[True]
|
||||
|
||||
# In stubs, the arguments of the IO class are marked as positional-only.
|
||||
# This differs from runtime, but better reflects the fact that in reality
|
||||
|
||||
Reference in new issue
Block a user