cleaned up a few loose imports no longer needed and commented out code

This commit is contained in:
PatchOfScotland
2023-02-09 09:28:42 +01:00
parent d918a1bdc1
commit d0a824c80f
2 changed files with 1 additions and 6 deletions

View File

@ -53,11 +53,6 @@ def check_type(variable:Any, expected_type:Type, alt_types:List[Type]=[],
if get_origin(expected_type) is Union:
type_list = list(get_args(expected_type))
type_list = type_list + alt_types
# # If we have any types from typing, then update to allow checks against
# # their base types too
# for t in type_list:
# if get_origin(t):
# type_list.append(get_origin(t))
# Only accept None if explicitly allowed
if variable is None: