cbrnr / sleepecg

Sleep stage detection using ECG
BSD 3-Clause "New" or "Revised" License
90 stars 23 forks source link

Remove future imports #149

Closed cbrnr closed 1 year ago

cbrnr commented 1 year ago

Just checking if this is still necessary. It looks like we can remove them with Python >= 3.10.

Python 3.8

      def _read_yaml(path: Path) -> dict[str, Any]:
  E   TypeError: 'type' object is not subscriptable

Python 3.9

      data_dir: str | Path = ".",
  E   TypeError: unsupported operand type(s) for |: 'type' and 'type'