Skip to content

Commit 5b41426

Browse files
committed
parquetdb: fix linting
Signed-off-by: Claudio Usai <[email protected]>
1 parent 9b51688 commit 5b41426

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

suzieq/db/parquet/parquetdb.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import re
33
from time import time
4-
from typing import List, Optional
4+
from typing import Any, Callable, List, Optional
55
import logging
66
from pathlib import Path
77
from datetime import datetime, timedelta, timezone
@@ -619,7 +619,7 @@ def _get_filtered_fileset(self, dataset: ds, namespaces: list) -> ds:
619619
ds: pyarrow dataset of only the files that match filter
620620
"""
621621
def check_ns_conds(ns_to_test: str, filter_list: List[str],
622-
op: operator.or_) -> bool:
622+
op: Callable[[Any, Any], Any]) -> bool:
623623
"""Concat the expressions with the provided (AND or OR) operator
624624
and return the result of the resulting expression tested on the
625625
provided namespace.
@@ -635,7 +635,7 @@ def check_ns_conds(ns_to_test: str, filter_list: List[str],
635635
# We would like to init the result to False if we concat the
636636
# expressions with OR, while with True if we use AND.
637637
res = False
638-
if operator.and_ == op:
638+
if operator.and_ is op:
639639
res = True
640640
for filter_val in filter_list:
641641
ns_to_test = ns_to_test.split('namespace=')[-1]

0 commit comments

Comments
 (0)