mirror of
https://github.com/django-components/django-components.git
synced 2025-11-13 12:21:53 +00:00
refactor: fix linter errors
This commit is contained in:
parent
810feb6dc7
commit
b39a7c700a
1 changed files with 1 additions and 1 deletions
|
|
@ -313,6 +313,6 @@ def convert_class_to_namedtuple(cls: Type[Any]) -> Type[Tuple[Any, ...]]:
|
|||
defaults_list = [defaults[name] for name in field_names[-num_fields_with_defaults:]]
|
||||
else:
|
||||
defaults_list = []
|
||||
tuple_cls = namedtuple(cls.__name__, field_names, defaults=defaults_list) # noqa: PYI024
|
||||
tuple_cls = namedtuple(cls.__name__, field_names, defaults=defaults_list) # type: ignore[misc] # noqa: PYI024
|
||||
tuple_cls.__annotations__ = cls.__annotations__
|
||||
return tuple_cls
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue