Skip to content

Commit

Permalink
refactor: fix line lengths in warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaZotov committed Dec 2, 2024
1 parent 464e39b commit 781f518
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/sc_kpm/utils/common_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ def search_non_role_relation_template(src: ScAddr, nrel_node: ScAddr) -> Optiona

def search_norole_relation_template(src: ScAddr, nrel_node: ScAddr) -> Optional[ScTemplateResult]:
warnings.warn(
"Common utils 'search_norole_relation_template' method is deprecated. Use `search_non_role_relation_template` method instead.",
"Common utils 'search_norole_relation_template' method is deprecated."
"Use `search_non_role_relation_template` method instead.",
DeprecationWarning,
)
return search_non_role_relation_template(src, nrel_node)
Expand All @@ -259,7 +260,8 @@ def search_element_by_role_relation(src: ScAddr, rrel_node: ScAddr) -> ScAddr:

def get_element_by_role_relation(src: ScAddr, rrel_node: ScAddr) -> ScAddr:
warnings.warn(
"Common utils 'get_element_by_role_relation' method is deprecated. Use `search_element_by_role_relation` method instead.",
"Common utils 'get_element_by_role_relation' method is deprecated."
"Use `search_element_by_role_relation` method instead.",
DeprecationWarning,
)
return search_element_by_role_relation(src, rrel_node)
Expand All @@ -272,7 +274,8 @@ def search_element_by_non_role_relation(src: ScAddr, nrel_node: ScAddr) -> ScAdd

def get_element_by_norole_relation(src: ScAddr, nrel_node: ScAddr) -> ScAddr:
warnings.warn(
"Common utils 'get_element_by_norole_relation' method is deprecated. Use `search_element_by_non_role_relation` method instead.",
"Common utils 'get_element_by_norole_relation' method is deprecated."
"Use `search_element_by_non_role_relation` method instead.",
DeprecationWarning,
)
return search_element_by_non_role_relation(src, nrel_node)
Expand Down

0 comments on commit 781f518

Please sign in to comment.