diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2020-05-12 08:50:02 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2020-05-12 08:50:02 +0200 |
commit | 60290ea135bb2b53ab87ad6d60f042d20a72db0b (patch) | |
tree | ce69d43ff9aa99819146f7c840ff3562222ceba7 /astroid/exceptions.py | |
parent | e53bfcb602114179bc3b0d4e1db7a5d155152d25 (diff) | |
download | astroid-git-60290ea135bb2b53ab87ad6d60f042d20a72db0b.tar.gz |
Fix the new violations of super-without-arguments
Diffstat (limited to 'astroid/exceptions.py')
-rw-r--r-- | astroid/exceptions.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/astroid/exceptions.py b/astroid/exceptions.py index 7e9d655e..08e72c13 100644 --- a/astroid/exceptions.py +++ b/astroid/exceptions.py @@ -28,7 +28,7 @@ class AstroidError(Exception): """ def __init__(self, message="", **kws): - super(AstroidError, self).__init__(message) + super().__init__(message) self.message = message for key, value in kws.items(): setattr(self, key, value) @@ -46,7 +46,7 @@ class AstroidBuildingError(AstroidError): """ def __init__(self, message="Failed to import module {modname}.", **kws): - super(AstroidBuildingError, self).__init__(message, **kws) + super().__init__(message, **kws) class AstroidImportError(AstroidBuildingError): @@ -69,7 +69,7 @@ class TooManyLevelsError(AstroidImportError): message="Relative import with too many levels " "({level}) for module {name!r}", **kws ): - super(TooManyLevelsError, self).__init__(message, **kws) + super().__init__(message, **kws) class AstroidSyntaxError(AstroidBuildingError): @@ -89,7 +89,7 @@ class NoDefault(AstroidError): name = None def __init__(self, message="{func!r} has no default for {name!r}.", **kws): - super(NoDefault, self).__init__(message, **kws) + super().__init__(message, **kws) class ResolveError(AstroidError): @@ -157,7 +157,7 @@ class InferenceError(ResolveError): context = None def __init__(self, message="Inference failed for {node!r}.", **kws): - super(InferenceError, self).__init__(message, **kws) + super().__init__(message, **kws) # Why does this inherit from InferenceError rather than ResolveError? @@ -175,7 +175,7 @@ class NameInferenceError(InferenceError): scope = None def __init__(self, message="{name!r} not found in {scope!r}.", **kws): - super(NameInferenceError, self).__init__(message, **kws) + super().__init__(message, **kws) class AttributeInferenceError(ResolveError): @@ -191,7 +191,7 @@ class AttributeInferenceError(ResolveError): attribute = None def __init__(self, message="{attribute!r} not found on {target!r}.", **kws): - super(AttributeInferenceError, self).__init__(message, **kws) + super().__init__(message, **kws) class UseInferenceDefault(Exception): |