There is no 'too complex function'
We check a function's cognitive complexity only with `mccabe` (=C901) and not with WPS231 as the two overlap in most cases.
This commit is contained in:
parent
6091ad95c6
commit
f0eb9d3b6f
10 changed files with 13 additions and 12 deletions
|
|
@ -69,7 +69,7 @@ class Restaurant(meta.Base):
|
|||
"""Shortcut to the `.address.city.map` object."""
|
||||
return self.address.city.map
|
||||
|
||||
def draw( # noqa:WPS231
|
||||
def draw(
|
||||
self, customers: bool = True, order_counts: bool = False, # pragma: no cover
|
||||
) -> folium.Map:
|
||||
"""Draw the restaurant on the `.address.city.map`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue