mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-25 09:48:40 +08:00
Fix typos in docs and comments (#11064)
This commit is contained in:
@@ -81,7 +81,7 @@ class Convertible(Typed[_T, _N]):
|
||||
allow_none: Literal[False] = False,
|
||||
) -> None: ...
|
||||
# NOTE: It is currently impossible to make a generic based on the parameter type of another generic
|
||||
# So we implement explicitely the types used internally
|
||||
# So we implement explicitly the types used internally
|
||||
# MultiCellRange
|
||||
@overload
|
||||
def __set__(
|
||||
@@ -295,8 +295,8 @@ class Default(Typed[_T, _N]): # unused
|
||||
) -> None: ...
|
||||
def __call__(self) -> _T: ...
|
||||
|
||||
# Note: Aliases types can't be infered. Anyway an alias means there's another option
|
||||
# incomplete: Make it generic with explicit getter/setter type arguments ?
|
||||
# Note: Aliases types can't be inferred. Anyway an alias means there's another option.
|
||||
# Incomplete: Make it generic with explicit getter/setter type arguments?
|
||||
class Alias(Descriptor[Incomplete]):
|
||||
alias: str
|
||||
def __init__(self, alias: str) -> None: ...
|
||||
|
||||
@@ -60,7 +60,7 @@ class NestedValue(Nested[_T], Convertible[_T, _N]): # type: ignore[misc]
|
||||
@overload
|
||||
def __get__(self: NestedValue[_T, Literal[False]], instance: Serialisable | Strict, cls: type | None = None) -> _T: ...
|
||||
# NOTE: It is currently impossible to make a generic based on the parameter type of another generic
|
||||
# So we implement explicitely the types used internally
|
||||
# So we implement explicitly the types used internally
|
||||
# str | Blip
|
||||
@overload
|
||||
def __set__(
|
||||
|
||||
@@ -21,7 +21,7 @@ class Serialisable(metaclass=MetaSerialisable):
|
||||
__elements__: ClassVar[tuple[str, ...]]
|
||||
__namespaced__: ClassVar[tuple[tuple[str, str], ...]]
|
||||
idx_base: int
|
||||
# Needs overrides in many sub-classes. But a lot of subclasses are instanciated without overriding it, so can't be abstract
|
||||
# Needs overrides in many sub-classes. But a lot of subclasses are instantiated without overriding it, so can't be abstract
|
||||
# Subclasses "overrides" this property with a ClassVar, and Serialisable is too widely used,
|
||||
# so it can't be typed as NoReturn either without introducing many false-positives.
|
||||
@property
|
||||
|
||||
@@ -47,7 +47,7 @@ def get_rels_path(path): ...
|
||||
def get_dependents(archive: ZipFile, filename: str) -> RelationshipList: ...
|
||||
|
||||
# If `id` is None, `cls` needs to have ClassVar `rel_type`.
|
||||
# The `deps` attribute used at runtime is for internal use immediatly after the return.
|
||||
# The `deps` attribute used at runtime is for internal use immediately after the return.
|
||||
# `cls` cannot be None
|
||||
@overload
|
||||
def get_rel(
|
||||
|
||||
Reference in New Issue
Block a user