Skip to content

Commit

Permalink
Fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
susuhahnml committed Dec 11, 2023
1 parent 7f785a5 commit 91226ec
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions clingraph/clingo_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def pos(self, x,y,scale=1):
def concat(self, *args):
"""
Concatenates the given symbols as a string
Args:
args: All symbols
Returns:
Expand All @@ -49,7 +49,7 @@ def concat(self, *args):
def format(self, s, *args):
"""
Formats the string with the given arguments
Args:
s (clingo.Symbol.String): The string to format, for example "{0} and {1}"
args: All symbols that can be accessed by the position starting in 0
Expand All @@ -62,7 +62,7 @@ def format(self, s, *args):
def stringify(self, s, capitalize=False):
"""
Turns a value into a string without underscore and capitalized if requested
Args:
s: The value to transform
Returns:
Expand All @@ -77,7 +77,7 @@ def stringify(self, s, capitalize=False):
def cluster(self, s):
"""
Returns the cluster name for a graph
Args:
s: The identifier of the graph
Returns:
Expand All @@ -90,7 +90,7 @@ def cluster(self, s):
def html_escape(self, s):
"""
Will escape the symbols of an HTML-Like label that provoque clashes: &, < and >
Args:
s (clingo.Symbol): The value that needs the symbols removed
Returns:
Expand Down Expand Up @@ -125,7 +125,7 @@ def svg_color(self):
"""
Generates an svg string that is used as a placeholder for the color in properties.
This string will be mapped into the css variable `currentcolor`.
Returns:
(clingo.Symbol.String) The string as a color placeholder
"""
Expand All @@ -136,7 +136,7 @@ def svg(self, event, element, property_name, property_value):
Generates an svg string for interactive actions This property will be set on the group tag
`<g>` used around the elements. Notice that any properties set using the `attr` predicates
will not be overwritten.
Args:
event: The svg event one of: "click","mouseenter","mouseleave","contextmenu"
element: The id on the element in which the action is performed. This element must have the id property set: `attr(node,ID,id,ID):-node(ID).`
Expand All @@ -155,7 +155,7 @@ def svg(self, event, element, property_name, property_value):
def color(self, option, opacity=None):
"""
Gets the html color code for the different options and the given opacity
Args:
option: primary, secondary, success, info, warning, danger, light
opacity: Numeric value indicating the opacity of the color
Expand Down

0 comments on commit 91226ec

Please sign in to comment.