Skip to content

Commit

Permalink
Ensure static class has no defined constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Mar 20, 2024
1 parent 31721cc commit dc847ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aeon/io/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _createStreams(path, *args):
try:
streams.update(callable(path))
except TypeError:
if inspect.isclass(callable):
if inspect.isclass(callable) and not hasattr(callable, "__init__"):
warn(
f"Stream group classes with no constructors are deprecated. {callable}",
category=DeprecationWarning,
Expand Down

0 comments on commit dc847ab

Please sign in to comment.