We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c1797a commit 4cc91bfCopy full SHA for 4cc91bf
pyproject.toml
@@ -65,7 +65,7 @@ select = [
65
# Quality and style
66
"B", # flake8-bugbear
67
"Q", # flake8-quotes
68
- # "SIM", # flake8-simplify
+ "SIM", # flake8-simplify
69
"FLY", # flynt
70
# "PERF", # Perflint
71
src/streetview/search.py
@@ -60,10 +60,7 @@ def extract_panoramas(text: str) -> list[Panorama]:
60
61
raw_panos = subset[3][0]
62
63
- if len(subset) < 9 or subset[8] is None:
64
- raw_dates = []
- else:
- raw_dates = subset[8]
+ raw_dates = [] if (len(subset) < 9 or subset[8] is None) else subset[8]
# For some reason, dates do not include a date for each panorama.
# the n dates match the last n panos. Here we flip the arrays
0 commit comments