Skip to content

Commit 491f090

Browse files
committed
Add slots?
1 parent 1c6fbe4 commit 491f090

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

datadog/util/compat.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
#
1919
# https://mypy.readthedocs.io/en/stable/common_issues.html#python-version-and-system-platform-checks
2020

21-
class Compat(types.ModuleType):
21+
class Compat(sys.modules[__name__].__class__):
22+
23+
__slots__ = tuple()
2224

2325
# Python 3.x
2426
if sys.version_info[0] >= 3:

0 commit comments

Comments
 (0)