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
Copy file name to clipboardExpand all lines: README.rst
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -297,20 +297,24 @@ and/or ignored codes.
297
297
Configuration
298
298
-------------
299
299
300
-
The plugin currently has one setting:
300
+
The plugin currently has the following settings:
301
301
302
302
``extend-immutable-calls``: Specify a list of additional immutable calls.
303
303
This could be useful, when using other libraries that provide more immutable calls,
304
304
beside those already handled by ``flake8-bugbear``. Calls to these method will no longer
305
305
raise a ``B008`` warning.
306
306
307
+
``classmethod-decorators``: Specify a list of decorators to additionally mark a method as a ``classmethod`` as used by B902. Default values are ``classmethod, validator, root_validator``, and when an ``@obj.name`` decorator is specified it will match against either ``name`` or ``obj.name``.
308
+
This functions similarly to how `pep8-naming <https://github.com/PyCQA/pep8-naming>` handles it, but with different defaults, and they don't support specifying attributes such that a decorator will never match against a specified value ``obj.name`` even if decorated with ``@obj.name``.
0 commit comments