cleanup dead code (#4271)

This commit is contained in:
benedikt-bartscher 2024-10-30 21:58:22 +01:00 committed by GitHub
parent 24363170d3
commit 0bdc828889
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -619,10 +619,6 @@ class Var(Generic[VAR_TYPE]):
"""
from .object import ObjectVar
base_type = var_type
if types.is_optional(base_type):
base_type = types.get_args(base_type)[0]
fixed_output_type = get_origin(output) or output
# If the first argument is a python type, we map it to the corresponding Var type.