Skip to content

Commit

Permalink
Don't include __slots__ in dir().
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleysommer committed Nov 1, 2024
1 parent 9578547 commit 84ccd43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rdflib/namespace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ def __repr__(self) -> str:
# considered part of __dir__ results. These should be all annotations on
# `DefinedNamespaceMeta`.
_DFNS_RESERVED_ATTRS: Set[str] = {
"__slots__",
"_NS",
"_warn",
"_fail",
Expand Down

0 comments on commit 84ccd43

Please sign in to comment.