Skip to content

Commit

Permalink
update type hinting for list rule
Browse files Browse the repository at this point in the history
  • Loading branch information
GiaJordan committed Mar 7, 2024
1 parent 913e686 commit 6c7e2a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions schematic/models/validate_attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from time import perf_counter

# allows specifying explicit variable types
from typing import Optional, Union, Tuple
from typing import Optional, Union, Tuple, Literal
from urllib.parse import urlparse
from urllib.request import Request, urlopen

Expand Down Expand Up @@ -61,7 +61,7 @@ def generate_list_error(
list_string: str,
row_num: str,
attribute_name: str,
list_error: str,
list_error: Literal["not_comma_delimited", "not_a_string"],
invalid_entry: str,
dmge: DataModelGraphExplorer,
val_rule: str,
Expand Down

0 comments on commit 6c7e2a4

Please sign in to comment.