Skip to content

Commit 33aee01

Browse files
committed
style: fix linter
1 parent 406aa20 commit 33aee01

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pyrdf2vec/samplers/wide.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from collections import defaultdict
2-
from typing import DefaultDict, Tuple
2+
from typing import DefaultDict
33

44
import attr
55

@@ -11,15 +11,15 @@
1111
@attr.s
1212
class WideSampler(Sampler):
1313

14-
_pred_degs: DefaultDict[Tuple[str, str], int] = attr.ib(
14+
_pred_degs: DefaultDict[str, int] = attr.ib(
1515
init=False, repr=False, factory=lambda: defaultdict(dict)
1616
)
1717

18-
_obj_degs: DefaultDict[Tuple[str, str], int] = attr.ib(
18+
_obj_degs: DefaultDict[str, int] = attr.ib(
1919
init=False, repr=False, factory=lambda: defaultdict(dict)
2020
)
2121

22-
_neighbor_counts: DefaultDict[Tuple[str, str], int] = attr.ib(
22+
_neighbor_counts: DefaultDict[str, int] = attr.ib(
2323
init=False, repr=False, factory=lambda: defaultdict(dict)
2424
)
2525

@@ -49,7 +49,7 @@ def fit(self, kg: KG) -> None:
4949
else:
5050
counter[vertex.name] = 1
5151

52-
def get_weight(self, hop: Hop) -> int:
52+
def get_weight(self, hop: Hop) -> float:
5353
"""Gets the weight of a hop in the Knowledge Graph.
5454
5555
Args:

0 commit comments

Comments
 (0)