From 84ccd43cf3a9bd6737546bf3aae64efe266acb3c Mon Sep 17 00:00:00 2001 From: Ashley Sommer Date: Fri, 1 Nov 2024 14:15:23 +1000 Subject: [PATCH] Don't include __slots__ in dir(). --- rdflib/namespace/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rdflib/namespace/__init__.py b/rdflib/namespace/__init__.py index 06647a867..eb8e2eeed 100644 --- a/rdflib/namespace/__init__.py +++ b/rdflib/namespace/__init__.py @@ -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",