Skip to content

Commit

Permalink
fix type hints (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
PythonFZ authored Mar 21, 2022
1 parent 3e77134 commit c5e3a96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zntrack/zn/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import dataclasses
import pathlib
from typing import TYPE_CHECKING, List
from typing import TYPE_CHECKING, List, Union

from zntrack.utils import utils

Expand All @@ -19,7 +19,7 @@ class NodeAttribute:
affected_files: List[pathlib.Path]


def getdeps(node: Node, attribute: str) -> NodeAttribute:
def getdeps(node: Union[Node, type(Node)], attribute: str) -> NodeAttribute:
"""Allow for Node attributes as dependencies
Parameters
Expand Down

0 comments on commit c5e3a96

Please sign in to comment.