Skip to content

Commit

Permalink
ignore mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianCzajkowski committed Aug 30, 2024
1 parent ff339cc commit f631358
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ariadne_graphql_modules/base_object_type/graphql_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,11 +377,10 @@ def _process_class_attributes(target_cls, fields_data: GraphQLFieldData):
if cls_attr.description:
fields_data.fields_descriptions[attr_name] = cls_attr.description
if cls_attr.resolver:
fields_data.fields_resolvers[attr_name] = (
cls_attr.resolver.__func__
if isinstance(cls_attr.resolver, staticmethod)
else cls_attr.resolver
)
resolver = cls_attr.resolver
if isinstance(resolver, staticmethod):
resolver = cls_attr.resolver.__func__ # type: ignore[attr-defined]
fields_data.fields_resolvers[attr_name] = resolver
field_args = get_field_args_from_resolver(cls_attr.resolver)
if field_args:
fields_data.fields_args[attr_name] = update_field_args_options(
Expand Down

0 comments on commit f631358

Please sign in to comment.