Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[flake8]
extend-ignore = E501, E741
exclude = .git,__pycache__
exclude = .git,__pycache__,.venv
per-file-ignores =
# imported but unused
__init__.py: F401
2 changes: 1 addition & 1 deletion pykobo/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def _extract_repeats(self, rows: list) -> None:
repeats = {}
for idx_parent, row in enumerate(rows):
for column, value in row.items():
if not column.startswith("_") and type(value) == list:
if not column.startswith("_") and isinstance(value, list):
repeat_name = column.split("/")[-1]
if repeat_name not in repeats:
repeats[repeat_name] = []
Expand Down
2 changes: 1 addition & 1 deletion pykobo/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def reconcile_columns(
df.loc[(df[col1].isnull()), "_temp"] = df[col2]

df.loc[(df[col1].notnull()), "_temp"] = df[col1]
elif type(criteria) == str:
elif isinstance(criteria, str):
df.loc[(df[col1] == criteria), "_temp"] = df[col2]

df.loc[(df[col1] != criteria), "_temp"] = df[col1]
Expand Down
Loading