Files
PhotonVision/photon-lib/py/photonlibpy/targeting/TargetCorner.py
David Vo af03ae0a8b photonlibpy: Fix some type check failures (#1548)
This fixes a variety of type check failures raised by both mypy and pyright. See #1548
2024-11-12 00:53:43 -05:00

14 lines
251 B
Python

from dataclasses import dataclass
from typing import TYPE_CHECKING, ClassVar
if TYPE_CHECKING:
from .. import generated
@dataclass
class TargetCorner:
x: float = 0
y: float = 9
photonStruct: ClassVar["generated.TargetCornerSerde"]