Skip to content

Commit 67fd8cf

Browse files
use isinstance for typecheck
1 parent 2c2e8e1 commit 67fd8cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dynatrace/environment_v2/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def create_object(
5959
"""
6060
query_params = {"validateOnly": validate_only}
6161

62-
if type(body) == SettingsObjectCreate:
62+
if isinstance(body, SettingsObjectCreate):
6363
body = [body]
6464

6565
body = [o.json() for o in body]

0 commit comments

Comments
 (0)