You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseValueError("%s.%s has two type declarations"% (cls.__name__, m))
459
+
# Otherwise, skip this set class variable
459
460
continue
460
461
461
-
# If the class variable has been assigned in __init__, skip it
462
+
# If the variable has been assigned in __init__ or createObjects, skip it
462
463
ifhasattr(self, m):
463
464
continue
464
465
465
466
# If the type is not actually a type, give a meaningful error
466
467
ifnotisinstance(ctyp, type):
467
-
raiseTypeError('%s has a non-type annotation on %s (%s); lone non-injection variable annotations are disallowed, did you want to assign a static variable?'%
468
-
(cls.__name__, m, ctyp))
468
+
raiseTypeError('%s has a non-type annotation on %s (%r); lone non-injection variable annotations are disallowed, did you want to assign a static variable?'
raiseValueError("%s.%s has two type declarations"% (component_type.__name__, n))
564
+
# Otherwise, skip this set class variable
563
565
continue
564
566
565
-
# If the class variable has been assigned in __init__, skip it
567
+
# If the variable has been assigned in __init__, skip it
566
568
ifhasattr(component, n):
567
569
continue
568
570
569
571
# If the type is not actually a type, give a meaningful error
570
572
ifnotisinstance(inject_type, type):
571
-
raiseTypeError('Component %s has a non-type annotation on %s (%s); lone non-injection variable annotations are disallowed, did you want to assign a static variable?'%
572
-
(cname, n, inject_type))
573
+
raiseTypeError('Component %s has a non-type annotation on %s (%r); lone non-injection variable annotations are disallowed, did you want to assign a static variable?'
0 commit comments