ruff
33529c04
- Allow `NoReturn`-like functions for `__str__`, `__len__`, etc. (#11017)
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Commit
View On
GitHub
Commit
1 year ago
Allow `NoReturn`-like functions for `__str__`, `__len__`, etc. (#11017) ## Summary If the method always raises, we shouldn't raise a diagnostic for "returning a value of the wrong type". Closes https://github.com/astral-sh/ruff/issues/11016.
References
#11017 - Allow `NoReturn`-like functions for `__str__`, `__len__`, etc.
Author
charliermarsh
Parents
e751b4ea
Loading