ruff: enable B warnings (mainly suppressed exceptions and unused variables)
This commit is contained in:
parent
f563dee215
commit
8b1ec35286
30 changed files with 83 additions and 67 deletions
|
@ -33,7 +33,7 @@ def default_policy() -> TzPolicy:
|
|||
def localize_with_policy(
|
||||
lfun: Callable[[datetime], datetime_aware],
|
||||
dt: datetime,
|
||||
policy: TzPolicy=default_policy()
|
||||
policy: TzPolicy=default_policy() # noqa: B008
|
||||
) -> datetime_aware:
|
||||
tz = dt.tzinfo
|
||||
if tz is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue