drop Python 3.8 support (#10265)

* drop Python 3.8

Note that this PR only makes typing related changes.
Other changes can be done once this gets merged, they
are relatively few in numbers.

* bump build python version

* add typing_extensions to lint group
This commit is contained in:
skshetry
2024-01-30 11:33:25 +02:00
committed by GitHub
parent 966adec21c
commit b647475a64
126 changed files with 843 additions and 905 deletions
+2 -3
View File
@@ -2,7 +2,6 @@ import logging
import re
from argparse import SUPPRESS, ArgumentParser
from itertools import takewhile
from typing import Tuple
import pytest
import shtab
@@ -12,10 +11,10 @@ from dvc.cli.parser import get_main_parser
def command_tuples():
root: Tuple[str, ...] = ()
root: tuple[str, ...] = ()
commands = [root]
def recurse_parser(parser: ArgumentParser, parents: Tuple[str, ...] = root) -> None:
def recurse_parser(parser: ArgumentParser, parents: tuple[str, ...] = root) -> None:
for positional in parser._get_positional_actions():
if positional.help != SUPPRESS and isinstance(positional.choices, dict):
public_cmds = shtab.get_public_subcommands(positional)