generated from jCloud/repository-template
style: limit line length to 79 characters
Limited the lengths of all lines to 79 characters (if possible). Additionally, some other lines were breaked for consistence.
This commit is contained in:
25 files changed
+6726
-1071
No files matched your search
@@ -24,7 +24,15 @@ class NamespaceError(ValueError):
|
||||
if not self.args:
|
||||
return ''
|
||||
else:
|
||||
return f'{self.args[0]}{": " if self.namespace_identifier and self.args[0] else ""}{self.namespace_identifier if self.args[0] else ""}'
|
||||
return f'{self.args[0]}{
|
||||
": "
|
||||
if self.namespace_identifier and self.args[0]
|
||||
else ""
|
||||
}{
|
||||
self.namespace_identifier
|
||||
if self.args[0]
|
||||
else ""
|
||||
}'
|
||||
|
||||
class InvalidNamespaceError(NamespaceError): ...
|
||||
class NamespaceNotFoundError(NamespaceError): ...
|
||||
@@ -42,7 +50,15 @@ class PythonIdentifierError(ValueError):
|
||||
if not self.args:
|
||||
return ''
|
||||
else:
|
||||
return f'{self.args[0]}{": " if self.identifier and self.args[0] else ""}{self.identifier if self.args[0] else ""}'
|
||||
return f'{self.args[0]}{
|
||||
": "
|
||||
if self.identifier and self.args[0]
|
||||
else ""
|
||||
}{
|
||||
self.identifier
|
||||
if self.args[0]
|
||||
else ""
|
||||
}'
|
||||
|
||||
class InvalidPythonIdentifierError(PythonIdentifierError): ...
|
||||
|
||||
@@ -58,7 +74,15 @@ class PythonAnnotationError(ValueError):
|
||||
if not self.args:
|
||||
return ''
|
||||
else:
|
||||
return f'{self.args[0]}{": " if self.annotation and self.args[0] else ""}{self.annotation if self.args[0] else ""}'
|
||||
return f'{self.args[0]}{
|
||||
": "
|
||||
if self.annotation and self.args[0]
|
||||
else ""
|
||||
}{
|
||||
self.annotation
|
||||
if self.args[0]
|
||||
else ""
|
||||
}'
|
||||
|
||||
class InvalidPythonAnnotationError(PythonAnnotationError): ...
|
||||
|
||||
@@ -74,6 +98,14 @@ class PythonDefinitionError(ValueError):
|
||||
if not self.args:
|
||||
return ''
|
||||
else:
|
||||
return f'{self.args[0]}{": " if self.definition and self.args[0] else ""}{self.definition if self.args[0] else ""}'
|
||||
return f'{self.args[0]}{
|
||||
": "
|
||||
if self.definition and self.args[0]
|
||||
else ""
|
||||
}{
|
||||
self.definition
|
||||
if self.args[0]
|
||||
else ""
|
||||
}'
|
||||
|
||||
class PythonArgumentStructureError(PythonDefinitionError): ...
|
||||
Reference in new issue
Block a user