Skip to content

Commit

Permalink
use typehint for older pythons
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer committed Sep 23, 2024
1 parent 9b7097c commit 2843aa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hvcc/core/hv2ir/HeavyLangObject.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def remove_connection(self, c: Connection) -> None:
else:
raise HeavyException(f"Connection {c} does not connect to this object {self}.")

def replace_connection(self, c: Connection, n_list: list) -> None:
def replace_connection(self, c: Connection, n_list: List) -> None:
""" Replaces connection c with connection list n_list, maintaining connection order
"""
if c.from_object is self:
Expand Down

0 comments on commit 2843aa5

Please sign in to comment.