Skip to content

Commit

Permalink
Actually fix type annotation (3.8)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliberts committed Jan 6, 2025
1 parent a5c49e4 commit 93b53a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/huggingface_hub/hub_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

# Type alias for dataclass instances, copied from https://github.com/python/typeshed/blob/9f28171658b9ca6c32a7cb93fbb99fc92b17858b/stdlib/_typeshed/__init__.pyi#L349
class DataclassInstance(Protocol):
__dataclass_fields__: ClassVar[Dict[str, Field[Any]]]
__dataclass_fields__: ClassVar[Dict[str, Field]]


# Generic variable that is either ModelHubMixin or a subclass thereof
Expand Down

0 comments on commit 93b53a7

Please sign in to comment.