Skip to content

Commit

Permalink
Re-enable B019 cache-instance-method check (#6136)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Dec 27, 2023
1 parent c08c4eb commit 396b0d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion panel/reactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def __init__(self, **params):
#----------------------------------------------------------------

@classproperty
@lru_cache(maxsize=None)
@lru_cache(maxsize=None) # noqa: B019 (cls is not an instance)
def _property_mapping(cls):
rename = {}
for scls in cls.__mro__[::-1]:
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ ignore = [
"W605",
"E701", # Multiple statements on one line
"B006", # Do not use mutable data structures for argument defaults
"B019", # lru_cache and cache are used deliberately
]
select = [
"B",
Expand Down

0 comments on commit 396b0d2

Please sign in to comment.