소스 검색

cleanup dead code (#4271)

benedikt-bartscher 7 달 전
부모
커밋
0bdc828889
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      reflex/vars/base.py

+ 0 - 4
reflex/vars/base.py

@@ -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.