mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-24 12:01:52 +08:00
Fix some typos in comments (#9802)
This commit is contained in:
@@ -293,7 +293,7 @@ class structseq(Generic[_T_co]):
|
||||
# https://github.com/python/typeshed/pull/6560#discussion_r767149830
|
||||
def __new__(cls: type[Self], sequence: Iterable[_T_co], dict: dict[str, Any] = ...) -> Self: ...
|
||||
|
||||
# Superset of typing.AnyStr that also inclues LiteralString
|
||||
# Superset of typing.AnyStr that also includes LiteralString
|
||||
AnyOrLiteralStr = TypeVar("AnyOrLiteralStr", str, bytes, LiteralString) # noqa: Y001
|
||||
|
||||
# Represents when str or LiteralStr is acceptable. Useful for string processing
|
||||
|
||||
@@ -30,7 +30,7 @@ if sys.platform != "win32":
|
||||
]
|
||||
|
||||
_RequestType: TypeAlias = _socket | tuple[bytes, _socket]
|
||||
_AfUnixAddress: TypeAlias = str | ReadableBuffer # adddress acceptable for an AF_UNIX socket
|
||||
_AfUnixAddress: TypeAlias = str | ReadableBuffer # address acceptable for an AF_UNIX socket
|
||||
_AfInetAddress: TypeAlias = tuple[str | bytes | bytearray, int] # address acceptable for an AF_INET socket
|
||||
|
||||
# This can possibly be generic at some point:
|
||||
|
||||
@@ -3207,7 +3207,7 @@ class OptionMenu(Menubutton):
|
||||
# destroy and __getitem__ are overridden, signature does not change
|
||||
|
||||
# Marker to indicate that it is a valid bitmap/photo image. PIL implements compatible versions
|
||||
# which don't share a class hierachy. The actual API is a __str__() which returns a valid name,
|
||||
# which don't share a class hierarchy. The actual API is a __str__() which returns a valid name,
|
||||
# not something that type checkers can detect.
|
||||
@type_check_only
|
||||
class _Image: ...
|
||||
|
||||
Reference in New Issue
Block a user