From 6c7e2a4270bc1275a631c619dd265e0c1761e322 Mon Sep 17 00:00:00 2001 From: Gianna Jordan <61707471+GiaJordan@users.noreply.github.com> Date: Thu, 7 Mar 2024 14:08:45 -0700 Subject: [PATCH] update type hinting for list rule --- schematic/models/validate_attribute.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schematic/models/validate_attribute.py b/schematic/models/validate_attribute.py index 9abb6e4c1..03e799284 100644 --- a/schematic/models/validate_attribute.py +++ b/schematic/models/validate_attribute.py @@ -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 @@ -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,