Skip to content

Commit

Permalink
ci: fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
linw1995 committed Oct 11, 2024
1 parent c90d718 commit 62ab06b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions data_extractor/contrib/mypy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,8 @@ def get_dynamic_class_hook(
self, fullname: str
) -> Optional[Callable[[DynamicClassDefContext], None]]:
logger.debug("fullname=%r", fullname)
if self.options.python_version >= (3, 8):
if self.is_extractor_cls(fullname, is_item_subcls=True):
return partial(self.prepare_typeddict, fullname=fullname)
if self.is_extractor_cls(fullname, is_item_subcls=True):
return partial(self.prepare_typeddict, fullname=fullname)

return super().get_dynamic_class_hook(fullname)

Expand Down

0 comments on commit 62ab06b

Please sign in to comment.