Skip to content

Commit

Permalink
[doc] Use sphinx comments. NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
patacca committed Feb 13, 2024
1 parent 1008bba commit 27028e3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/qbindiff/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
An integer representing an address within a program
"""

NodeLabel: TypeAlias = Any # Generic node label
NodeLabel: TypeAlias = Any #: The node label of a generic graph

RawMapping: TypeAlias = tuple[list[Idx], list[Idx]]
"""
Expand Down Expand Up @@ -107,9 +107,9 @@
Float nxm-Dimensional array. A sparse version of the above SimMatrix
"""

Graph: TypeAlias = GenericGraph # generic Graph, iterable over the nodes
Graph: TypeAlias = GenericGraph #: generic Graph, iterable over the nodes

Node: TypeAlias = GenericNode # Generic node. This is the entity that will be matched
Node: TypeAlias = GenericNode #: Generic node. This is the entity that will be matched

ExtendedMapping: TypeAlias = Iterable[tuple[Node, Node, float, int]]
"""
Expand All @@ -121,9 +121,7 @@
Float n-Dimensional sparse array.
"""

PathLike: TypeAlias = str | Path # Path

NodeLabel: TypeAlias = Any # The node label of a generic graph
PathLike: TypeAlias = str | Path #: Path


class GenericPrePass(Protocol):
Expand Down

0 comments on commit 27028e3

Please sign in to comment.