Skip to content

Commit 84ccd43

Browse files
committed
Don't include __slots__ in dir().
1 parent 9578547 commit 84ccd43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rdflib/namespace/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ def __repr__(self) -> str:
226226
# considered part of __dir__ results. These should be all annotations on
227227
# `DefinedNamespaceMeta`.
228228
_DFNS_RESERVED_ATTRS: Set[str] = {
229+
"__slots__",
229230
"_NS",
230231
"_warn",
231232
"_fail",

0 commit comments

Comments
 (0)