generated from jCloud/repository-template
fix: fix syntax errors (target version)
Fixed all lines which were syntax errors in the target version (only multi-line f-strings).
This commit is contained in:
3 files changed
+30
-26
No files matched your search
@@ -28,9 +28,11 @@ 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 (
|
||||
self.args[0]
|
||||
+ (': ' if self.namespace_identifier and self.args[0] else '')
|
||||
+ (self.namespace_identifier if self.args[0] else '')
|
||||
)
|
||||
|
||||
|
||||
class InvalidNamespaceError(NamespaceError): ...
|
||||
@@ -55,9 +57,11 @@ 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 (
|
||||
self.args[0]
|
||||
+ (': ' if self.identifier and self.args[0] else '')
|
||||
+ (self.identifier if self.args[0] else '')
|
||||
)
|
||||
|
||||
|
||||
class InvalidPythonIdentifierError(PythonIdentifierError): ...
|
||||
@@ -76,9 +80,11 @@ 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 (
|
||||
self.args[0]
|
||||
+ (': ' if self.annotation and self.args[0] else '')
|
||||
+ (self.annotation if self.args[0] else '')
|
||||
)
|
||||
|
||||
|
||||
class InvalidPythonAnnotationError(PythonAnnotationError): ...
|
||||
@@ -97,9 +103,11 @@ 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 (
|
||||
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