@@ -786,36 +786,30 @@ def analyze_class_attribute_access(itype: Instance,
786
786
787
787
return apply_class_attr_hook (mx , hook , result )
788
788
elif isinstance (node .node , Var ):
789
- # TODO RIGHT NOW NOMERGE - is it okay to not modify this?
790
789
mx .not_ready_callback (name , mx .context )
791
790
return AnyType (TypeOfAny .special_form )
792
791
793
792
if isinstance (node .node , TypeVarExpr ):
794
- # TODO RIGHT NOW NOMERGE - is it okay to not modify this?
795
793
mx .msg .fail (message_registry .CANNOT_USE_TYPEVAR_AS_EXPRESSION .format (
796
794
info .name , name ), mx .context )
797
795
return AnyType (TypeOfAny .from_error )
798
796
799
797
if isinstance (node .node , TypeInfo ):
800
- assert False , "TODO RIGHT NOW NOMERGE - No tests hit this, how to trigger?"
801
- return apply_class_attr_hook (mx , hook , type_object_type (node .node , mx .builtin_type ))
798
+ return type_object_type (node .node , mx .builtin_type )
802
799
803
800
if isinstance (node .node , MypyFile ):
804
801
# Reference to a module object.
805
- assert False , "TODO RIGHT NOW NOMERGE - No tests hit this, how to trigger?"
806
- return apply_class_attr_hook (mx , hook , mx .builtin_type ('types.ModuleType' ))
802
+ return mx .builtin_type ('types.ModuleType' )
807
803
808
804
if (isinstance (node .node , TypeAlias ) and
809
805
isinstance (get_proper_type (node .node .target ), Instance )):
810
- return apply_class_attr_hook ( mx , hook , instance_alias_type (node .node , mx .builtin_type ) )
806
+ return instance_alias_type (node .node , mx .builtin_type )
811
807
812
808
if is_decorated :
813
809
assert isinstance (node .node , Decorator )
814
810
if node .node .type :
815
- assert False , "TODO RIGHT NOW NOMERGE - No tests hit this, how to trigger?"
816
811
return apply_class_attr_hook (mx , hook , node .node .type )
817
812
else :
818
- # TODO RIGHT NOW NOMERGE - is it okay to not modify this?
819
813
mx .not_ready_callback (name , mx .context )
820
814
return AnyType (TypeOfAny .from_error )
821
815
else :
0 commit comments