Exception type

(cherry picked from commit a048b0e3cc)
This commit is contained in:
Gouvernathor 2024-03-28 22:27:10 +01:00 committed by LoafyLemon
parent ea59c387d2
commit 6408942054
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ python early hide:
"""
# security
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
name = getattr(cls, "name", cls.__name__)