Fix typos in docs and comments (#11064)

This commit is contained in:
Alex Waygood
2023-11-23 14:55:58 +00:00
committed by GitHub
parent 30f7267b5d
commit 01432805d9
12 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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: ...