mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-13 03:21:07 +08:00
Fix typos in docs and comments (#11064)
This commit is contained in:
@@ -85,7 +85,7 @@ class Field:
|
||||
def process_formdata(self, valuelist: list[Any]) -> None: ...
|
||||
def populate_obj(self, obj: object, name: str) -> None: ...
|
||||
|
||||
# this is a workaround for what is essentialy illegal in static type checking
|
||||
# this is a workaround for what is essentially illegal in static type checking
|
||||
# Field.__new__ would return an UnboundField, unless the _form parameter is
|
||||
# specified. We can't really work around it by making UnboundField a subclass
|
||||
# of Field, since all subclasses of Field still need to return an UnboundField
|
||||
|
||||
@@ -14,7 +14,7 @@ class _SupportsGettextAndNgettext(Protocol):
|
||||
def ngettext(self, __singular: str, __plural: str, __n: int) -> str: ...
|
||||
|
||||
# these are the methods WTForms depends on, the dict can either provide
|
||||
# a getlist or getall, if it only provies getall, it will wrapped, to
|
||||
# a getlist or getall, if it only provides getall, it will wrapped, to
|
||||
# provide getlist instead
|
||||
class _MultiDictLikeBase(Protocol):
|
||||
def __iter__(self) -> Iterator[str]: ...
|
||||
@@ -50,6 +50,6 @@ class DefaultMeta:
|
||||
translations_cache: dict[str, _SupportsGettextAndNgettext]
|
||||
def get_translations(self, form: BaseForm) -> _SupportsGettextAndNgettext: ...
|
||||
def update_values(self, values: SupportsItems[str, Any]) -> None: ...
|
||||
# since meta can be extended with arbitary data we add a __getattr__
|
||||
# since meta can be extended with arbitrary data we add a __getattr__
|
||||
# method that returns Any
|
||||
def __getattr__(self, name: str) -> Any: ...
|
||||
|
||||
Reference in New Issue
Block a user