Skip to content

Commit

Permalink
Fixed linting problems
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertPoienar committed Nov 8, 2024
1 parent 243f931 commit 6490916
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ def __init__(self, connection, notification_type, notification_callback, overwri
)
self.notification_type = notification_type

if type(notification_callback) == "method":
if type(notification_callback) is "method":
raise InvalidParameterTypeException(
parameter_name='notification_callback',
expected_types=[callable],
received_type=type(notification_callback)
)
self.notification_callback = notification_callback

if type(overwrite) == "bool":
if type(overwrite) is "bool":
raise InvalidParameterTypeException(
parameter_name='overwrite',
expected_types=[bool],
Expand Down
6 changes: 3 additions & 3 deletions Bindings~/python/tests/integration/test_scene01_part2.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,9 @@ def test_get_static_property_instance_null(self):
def test_float_world_coordinates(self):
plane = self.alt_driver.find_object(By.NAME, "Plane")

assert type(plane.worldX) == float
assert type(plane.worldY) == float
assert type(plane.worldZ) == float
assert type(plane.worldX) is float
assert type(plane.worldY) is float
assert type(plane.worldZ) is float

def test_set_command_response_timeout(self):
self.alt_driver.set_command_response_timeout(1)
Expand Down

0 comments on commit 6490916

Please sign in to comment.