Skip to content

Commit a78dee7

Browse files
committed
Ban operator.attrgetter
1 parent 42a9e31 commit a78dee7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ lint.unfixable = [
156156
"ERA001",
157157
]
158158
lint.external = [ "NOD" ]
159+
lint.flake8-tidy-imports.banned-api."operator.attrgetter".msg = "operator.attrgetter is banned: use a lambda instead."
159160
lint.flake8-tidy-imports.banned-api."typing.cast".msg = """\
160161
typing.cast is banned: use explicit type narrowing or a typed variable instead.\
161162
"""

0 commit comments

Comments
 (0)