Skip to content

Commit d8dca1c

Browse files
committed
chore(pytest): more typehints to fix docs
1 parent 92d6552 commit d8dca1c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/pytest_plugins/spec_version_checker/spec_version_checker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
import os
77
import re
88
from types import ModuleType
9-
from typing import List, Optional, Set
9+
from typing import Any, List, Optional, Set
1010

1111
import pytest
12-
from _pytest.nodes import Item
12+
from _pytest.nodes import Item, Node
1313
from _pytest.python import Module
1414

1515
from ethereum_test_tools import ReferenceSpec, ReferenceSpecTypes
@@ -159,7 +159,7 @@ def __init__(
159159
self.github_token = github_token
160160

161161
@classmethod
162-
def from_parent(cls, parent, **kw) -> "EIPSpecTestItem":
162+
def from_parent(cls, parent: Node, **kw: Any) -> "EIPSpecTestItem":
163163
"""
164164
Public constructor to define new tests.
165165
https://docs.pytest.org/en/latest/reference/reference.html#pytest.nodes.Node.from_parent.

0 commit comments

Comments
 (0)