Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion importlib_resources/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ def open(self, mode='r', *args, **kwargs):
accepted by io.TextIOWrapper.
"""

@abc.abstractproperty
@property
@abc.abstractmethod
def name(self) -> str:
"""
The base name of this object without any parent references.
Expand Down
3 changes: 2 additions & 1 deletion importlib_resources/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class SimpleReader(abc.ABC):
provider.
"""

@abc.abstractproperty
@property
@abc.abstractmethod
def package(self) -> str:
"""
The name of the package for which this reader loads resources.
Expand Down