-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add lots of random fixes * Fix python 3.8 compatibility * Add more errors to ruff
- Loading branch information
1 parent
b3c4c48
commit d7c82b1
Showing
14 changed files
with
90 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,4 @@ | |
|
||
|
||
class CollectionBuilder(Protocol): | ||
def build(self) -> Collection: | ||
... | ||
def build(self) -> Collection: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from _typeshed import Incomplete | ||
|
||
def load(bibtex_file, parser: Incomplete | None = None): ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from typing import Any, Dict, Iterable, Iterator, List | ||
|
||
from _typeshed import Incomplete, Self | ||
|
||
__version__: str | ||
|
||
class Graph: | ||
def subgraph(self: Self, nodes: Iterable) -> Self: ... | ||
def copy(self: Self) -> Self: ... | ||
@property | ||
def nodes(self) -> Dict[str, Incomplete]: ... | ||
def add_node(self, node: str, **kwargs) -> None: ... | ||
def add_edge(self, u: str, v: str, **kwargs) -> None: ... | ||
def add_edges_from(self, edges: Iterable) -> None: ... | ||
def remove_nodes_from(self, edges: Iterable) -> None: ... | ||
def remove_edges_from(self, edges: Iterable) -> None: ... | ||
def __iter__(self) -> Iterator[str]: ... | ||
def in_degree(self, node: str) -> int: ... | ||
def out_degree(self, node: str) -> int: ... | ||
|
||
class DiGraph(Graph): | ||
def to_undirected(self) -> Graph: ... | ||
def successors(self, node: str) -> Iterable[str]: ... | ||
def predecessors(self, node: str) -> Iterable[str]: ... | ||
|
||
# NOTE: The attr parameter of this function is quite more complicated than this | ||
def set_node_attributes(g: DiGraph, attr: Any, name: str) -> None: ... | ||
def topological_sort(g: DiGraph) -> Iterable[str]: ... | ||
def selfloop_edges(g: DiGraph) -> Iterable[str]: ... | ||
def weakly_connected_components(g: DiGraph) -> Iterable[List[str]]: ... | ||
def strongly_connected_components(g: DiGraph) -> Iterable[List[str]]: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from networkx import Graph | ||
|
||
def louvain_communities(g: Graph): ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import networkx as nx | ||
|
||
from bibx.algorithms.sap import Sap | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters