1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Satisfy PEP8 E721 linter complaints

This commit is contained in:
Jeremy Stretch
2023-07-30 13:34:08 -04:00
parent 006c353d46
commit 0b10131564
5 changed files with 51 additions and 51 deletions

View File

@@ -123,9 +123,9 @@ class BulkImportForm(BootstrapMixin, SyncedDataMixin, forms.Form):
records = []
try:
for data in yaml.load_all(data, Loader=yaml.SafeLoader):
if type(data) == list:
if type(data) is list:
records.extend(data)
elif type(data) == dict:
elif type(data) is dict:
records.append(data)
else:
raise forms.ValidationError({