builtin-argument-shadowing
(A002
) should not fire when overriding
#12412
Labels
bug
Something isn't working
I have a custom API request factory that inherits from Django Rest Framework's
APIRequestFactory
. I am overriding thepost()
andpatch()
methods with some custom behavior. I need to use the same parameters as the overridden method, including one namedformat
. Sinceformat
is a Python built-in,A002
is triggered, but I have no recourse to rename it. For now, I'm excluding"format"
inbuiltin-ignores
, but I'd prefer to keep triggering onformat
in any non-overridden method.By the way, I'm on Python 3.12 and using
@override
on all my override methods, so it should be easy to determine if a method is an override that way.The text was updated successfully, but these errors were encountered: