Merge pull request #879 from oddstr13/pr-flake8-3

Enable flake8 pre-commit
This commit is contained in:
Odd Stråbø 2024-06-11 04:38:30 +02:00 committed by GitHub
commit 6a072cc71b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 20 additions and 13 deletions

View file

@ -104,7 +104,7 @@ class Objects(object):
if obj_key:
obj = (
[d[obj_key] for d in obj if d.get(obj_key)]
if type(obj) == list
if isinstance(obj, list)
else obj.get(obj_key)
)