From 8d30cff4ef3e555f41cd11b079f5419a042e185c Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Tue, 20 Feb 2024 19:14:24 -0800 Subject: [PATCH] Undo future annotations from watcher.py till Typer fixes its issue Fixes #1258 --- misc/watcher.py | 2 -- pyproject.toml | 1 - 2 files changed, 3 deletions(-) diff --git a/misc/watcher.py b/misc/watcher.py index 8c0e9a5a..f9fde9c6 100644 --- a/misc/watcher.py +++ b/misc/watcher.py @@ -7,8 +7,6 @@ # Do not enable annotations! # https://github.com/tiangolo/typer/discussions/598 -# from __future__ import annotations -from __future__ import annotations import json import logging diff --git a/pyproject.toml b/pyproject.toml index 761ce053..4d228361 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -167,7 +167,6 @@ target-version = "py310" [tool.ruff.lint.isort] known-first-party = ["ocrmypdf"] -required-imports = ["from __future__ import annotations"] [tool.ruff.lint.pydocstyle] convention = "google"