Skip to content

Commit

Permalink
removed troublesome class_getitem from mtime_cached_property
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Sep 4, 2024
1 parent a2ac208 commit 1f58cea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 7 additions & 1 deletion fileformats/core/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@
PathType: TypeAlias = ty.Union[str, Path]


__all__ = ["CryptoMethod", "FspathsInputType", "PathType", "TypeAlias", "Self"]
__all__ = [
"CryptoMethod",
"FspathsInputType",
"PathType",
"TypeAlias",
"Self",
]
2 changes: 0 additions & 2 deletions fileformats/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,5 +300,3 @@ def __get__(
value = self.func(instance)
instance.__dict__[self._cache_name] = (instance.mtimes, value)
return value

__class_getitem__ = classmethod(ty.GenericAlias) # type: ignore[attr-defined, var-annotated]

0 comments on commit 1f58cea

Please sign in to comment.