axnsan12 / drf-yasg

Automated generation of real Swagger/OpenAPI 2.0 schemas from Django REST Framework code.
https://drf-yasg.readthedocs.io/en/stable/
Other
3.42k stars 439 forks source link

fix lint errors with type comparison #868

Open terencehonles opened 1 year ago

terencehonles commented 1 year ago

This fixes some lint errors that appeared when updating https://github.com/axnsan12/drf-yasg/pull/840 since the linting rules do not seem to be pinned or changed since the last run.

terencehonles commented 4 weeks ago

I'll see if I can update this PR sometime soon, but may not get to it this weekend

terencehonles commented 1 week ago

I've rebased this after #897 @JoelLefkowitz

terencehonles commented 1 week ago

It does look like these are not flagged by the linter anymore so we could drop this PR, but using is instead of == is probably better.