Skip to content

Commit 4d96857

Browse files
authored
Fix type hint import on Python 3.8- (#199)
* Fix type hint import on Python 3.8- * Update pytest_plugin.py
1 parent 25afdc2 commit 4d96857

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pyfrc/test_support/pytest_plugin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import gc
22
import pathlib
3-
import typing
3+
4+
from typing import Type
45

56
import pytest
67
import weakref
@@ -29,7 +30,7 @@ class PyFrcPlugin:
2930
be passed to your test function.
3031
"""
3132

32-
def __init__(self, robot_class: type[wpilib.RobotBase], robot_file: pathlib.Path):
33+
def __init__(self, robot_class: Type[wpilib.RobotBase], robot_file: pathlib.Path):
3334

3435
# attach physics
3536
physics, robot_class = PhysicsInterface._create_and_attach(

0 commit comments

Comments
 (0)