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
{{ message }}
Repository navigation
cached_property overriding unannotated class variable #3062
fromfunctoolsimportcached_propertyclassBaseDatabaseFeatures2:
can_introspect_fk=Trueupdate_can_self_select=TrueclassMySQLFeatures(BaseDatabaseFeatures2):
@cached_propertydefcan_introspect_fk(self): # FP: property but BaseDatabaseFeatures2.can_introspect_fk is notreturnself._check()
@cached_propertydefupdate_can_self_select(self): # FP: property but parent is notreturnTruedef_check(self) ->bool:
returnFalse
cached_property is defined to be settable on typeshed. No other type checker wants to error on this, at least by default.
Activity
asukaminato0721 commentedon Jun 30, 2026
#claim
github-actions commentedon Jun 30, 2026
@asukaminato0721 you've claimed this issue — it's now assigned to you. Thanks for picking it up! 🎉