Skip to content

Commit b2576b4

Browse files
committed
Ban operator.attrgetter
1 parent 3cb6919 commit b2576b4

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
@@ -153,6 +153,7 @@ lint.external = [
153153
# Vulture.
154154
"V",
155155
]
156+
lint.flake8-tidy-imports.banned-api."operator.attrgetter".msg = "operator.attrgetter is banned: use a lambda instead."
156157
lint.flake8-tidy-imports.banned-api."typing.cast".msg = """\
157158
typing.cast is banned: use explicit type narrowing or a typed variable instead.\
158159
"""

0 commit comments

Comments
 (0)