mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-15 00:07:28 +00:00
Config: Allow existing values to get included in generated file
Allows for generation from an existing config file. Primarily used for migration purposes. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
@@ -62,8 +62,11 @@ def is_list_type(type_hint) -> bool:
|
||||
return False
|
||||
|
||||
|
||||
def unwrap_optional(type_hint) -> Type:
|
||||
"""unwrap Optional[type] annotations"""
|
||||
def unwrap_optional_type(type_hint) -> Type:
|
||||
"""
|
||||
Unwrap Optional[type] annotations.
|
||||
This is not the same as unwrap.
|
||||
"""
|
||||
|
||||
if get_origin(type_hint) is Union:
|
||||
args = get_args(type_hint)
|
||||
|
||||
Reference in New Issue
Block a user