Skip to content

Commit

Permalink
Update typing-extensions requirement: use only for Python versions pr…
Browse files Browse the repository at this point in the history
…ior to 3.12
  • Loading branch information
realshouzy committed Jan 5, 2024
1 parent 2eabc1c commit 0908354
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion auto_file_sorter/event_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,20 @@
import logging
import os
import shutil
import sys
from concurrent.futures import ThreadPoolExecutor
from datetime import datetime
from typing import TYPE_CHECKING

from typing_extensions import override
from watchdog.events import FileSystemEventHandler

from auto_file_sorter.constants import MOVE_LOG_LEVEL

if sys.version_info >= (3, 12): # pragma: >=3.12 cover
from typing import override
else: # pragma: <3.12 cover
from typing_extensions import override

if TYPE_CHECKING:
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ ignore = [
"TD002",
"TD003",
"FIX002",
"UP036",
]
fixable = ["ALL"]
unfixable = []
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
typing-extensions>=4.7.1
typing_extensions>=4.6.0;python_version<"3.12"
watchdog>=3.0.0

0 comments on commit 0908354

Please sign in to comment.