Skip to content

Commit 4452faa

Browse files
committed
fix(python-linter): regex pattern caused linter issues
Signed-off-by: Alexander Dahmen <[email protected]>
1 parent ec3ed8b commit 4452faa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/python/model_oneof.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}}
2121
{{#composedSchemas.oneOf}}
2222
# data type: {{{dataType}}}
2323
{{#isString}}
24-
{{vendorExtensions.x-py-name}}: Optional[Annotated[{{{dataType}}}, Field(strict=True)]] = Field(default=None, description="{{{description}}}"{{#pattern}}, pattern=re.sub(r'^\/|\/$', '',"{{.}}"){{/pattern}})
24+
{{vendorExtensions.x-py-name}}: Optional[Annotated[{{{dataType}}}, Field(strict=True)]] = Field(default=None, description="{{{description}}}"{{#pattern}}, pattern=re.sub(r'^\/|\/$', '',r"{{.}}"){{/pattern}})
2525
{{/isString}}
2626
{{^isString}}
2727
{{vendorExtensions.x-py-name}}: {{{vendorExtensions.x-py-typing}}}

0 commit comments

Comments
 (0)