Skip to content

Commit 3ce4c18

Browse files
committed
Fix for flake8 F722 syntax error in forward annotation
1 parent 739b8b8 commit 3ce4c18

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

simvue/models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
from typing import Optional, List, Dict, Union
66
from enum import Enum
77

8+
FolderStrRegex = constr(regex=r"^/.*")
9+
810
# Pydantic class to validate run.init()
911
class RunInput(BaseModel):
1012
name: Optional[str]
1113
metadata: Optional[Dict[str, Union[str, int, float, None]]]
1214
tags: Optional[List[str]]
1315
description: Optional[str]
14-
folder: constr(regex=r'^/.*')
16+
folder: FolderStrRegex
1517
status: Optional[str]

0 commit comments

Comments
 (0)