Skip to content

Commit 53dfead

Browse files
committed
Format fixes
1 parent e01f2c9 commit 53dfead

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

reportportal_client/_internal/static/abstract.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,14 @@ class Implementation(Interface):
4040
def __call__(cls, *args, **kwargs):
4141
"""Disable instantiation for the interface classes."""
4242
if cls.__name__ in AbstractBaseClass._abc_registry:
43-
raise TypeError("No instantiation allowed for Interface-Class"
44-
" '{}'. Please inherit.".format(cls.__name__))
43+
raise TypeError("No instantiation allowed for Interface-Class '{}'. Please inherit.".format(cls.__name__))
4544

4645
result = super(AbstractBaseClass, cls).__call__(*args, **kwargs)
4746
return result
4847

4948
def __new__(mcs, name, bases, namespace):
5049
"""Register instance of the implementation class."""
51-
class_ = super(AbstractBaseClass, mcs).__new__(mcs, name,
52-
bases, namespace)
50+
class_ = super(AbstractBaseClass, mcs).__new__(mcs, name, bases, namespace)
5351
if namespace.get("__metaclass__") is AbstractBaseClass:
5452
mcs._abc_registry.append(name)
5553
return class_

0 commit comments

Comments
 (0)