Repository navigation
Change type from Any to object for under_cached_property.__get__ - #50
Conversation
|
|
||
| @overload | ||
| def __get__(self, inst: None, owner: Optional[Type[Any]] = None) -> Self: ... | ||
| def __get__(self, inst: None, owner: Optional[Type[object]] = None) -> Self: ... |
Check notice
Code scanning / CodeQL
Statement has no effect
|
|
||
| @overload | ||
| def __get__(self, inst: _TSelf[_T], owner: Optional[Type[Any]] = None) -> _T: ... | ||
| def __get__(self, inst: _TSelf[_T], owner: Optional[Type[object]] = None) -> _T: ... |
Check notice
Code scanning / CodeQL
Statement has no effect
|
Seems ok downstream in yarl |
|
Seems ok in aiohttp |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #50 +/- ##
=======================================
Coverage 88.24% 88.24%
=======================================
Files 17 17
Lines 689 689
Branches 98 98
=======================================
Hits 608 608
Misses 63 63
Partials 18 18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
For calling code, this change could only remove errors, not introduce them (i.e. if using --warn-any-expr). |
|
Before After |
|
Super confusing that
|
|
Too tired and jet lagged to revalidate so I'll leave this for someone else to ✅ and merge or I'll take a look again when I've had some sleep. |
|
I think this is good to merge as-is, but I wasn't 100% on all the discussions above so I'll leave it until they are resolved above. |
|
I think it's okay to merge. This is probably best we can do right now. |
Originally posted by @Dreamsorcerer in #38 (comment)