Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirman committed Nov 12, 2024
1 parent 1bce88b commit 238b6b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/aind_data_schema/utils/schema_version_bump.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ def _get_updated_file(python_file_path: str, new_ver: str) -> list:
file_lines = f.readlines()
for line in file_lines:
if "schema_version: SkipValidation[Literal[" in str(line):
new_line_str = f' schema_version: SkipValidation[Literal["{new_ver}"]] = Field(default="{new_ver}")\n'
new_line_str = (
f' schema_version: SkipValidation[Literal["{new_ver}"]] = Field(default="{new_ver}")\n'
)
new_line = new_line_str.encode()
else:
new_line = line
Expand Down

0 comments on commit 238b6b6

Please sign in to comment.