Skip to content

Commit

Permalink
Fix bad type[...] annotations
Browse files Browse the repository at this point in the history
Fixes #285
  • Loading branch information
mhostetter committed Feb 4, 2024
1 parent 1c1f24e commit 00602d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ ignore = [
"PLR0912", # too-many-branches
"PLR0915", # too-many-statements
"PLW0603", # global-statement
"UP006", # non-pep585-annotation, type[FieldArray] renders wrong in docs
]
extend-select = [
"D213", # multi-line-summary-second-line
Expand Down
6 changes: 3 additions & 3 deletions src/sdr/_sequence/_lfsr.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
from __future__ import annotations

from typing import Callable, overload
from typing import Callable, Type, overload

import numba
import numpy as np
Expand Down Expand Up @@ -468,7 +468,7 @@ def to_galois_lfsr(self) -> GLFSR:
return GLFSR(self.characteristic_poly, state=state)

@property
def field(self) -> type[FieldArray]:
def field(self) -> Type[FieldArray]:
"""
The :obj:`~galois.FieldArray` subclass for the finite field that defines the linear arithmetic.
Expand Down Expand Up @@ -1170,7 +1170,7 @@ def to_fibonacci_lfsr(self) -> FLFSR:
return FLFSR(self.characteristic_poly, state=state)

@property
def field(self) -> type[FieldArray]:
def field(self) -> Type[FieldArray]:
"""
The :obj:`~galois.FieldArray` subclass for the finite field that defines the linear arithmetic.
Expand Down

0 comments on commit 00602d4

Please sign in to comment.