parent
ea59c387d2
commit
6408942054
@ -12,7 +12,7 @@ python early hide:
|
|||||||
"""
|
"""
|
||||||
# security
|
# security
|
||||||
def raiser(*args, **kwargs):
|
def raiser(*args, **kwargs):
|
||||||
raise NotImplementedError("Returning an instance of the class is disabled")
|
raise TypeError("Returning an instance of the class is disabled")
|
||||||
cls.__init__ = raiser
|
cls.__init__ = raiser
|
||||||
|
|
||||||
name = getattr(cls, "name", cls.__name__)
|
name = getattr(cls, "name", cls.__name__)
|
||||||
|
Loading…
Reference in New Issue
Block a user