Skip to content

Commit ab0b254

Browse files
committed
chore: clean up after pyupgrade
1 parent d1a7029 commit ab0b254

File tree

12 files changed

+13
-14
lines changed

12 files changed

+13
-14
lines changed

src/scriv/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import pkgutil
77
import re
88
from pathlib import Path
9-
from typing import Any, List
9+
from typing import Any
1010

1111
import attr
1212

src/scriv/format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Dispatcher for format-based knowledge."""
22

33
import abc
4-
from typing import Dict, List, Optional
4+
from typing import Optional
55

66
from .config import Config
77

src/scriv/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import logging
44
import os
5-
from typing import Any, Dict
65
from collections.abc import Iterable
6+
from typing import Any
77

88
import requests
99

src/scriv/gitinfo.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import subprocess
77
import sys
88
from pathlib import Path
9-
from typing import Set
109

1110
import click
1211

src/scriv/literals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import ast
66
import configparser
77
import os.path
8-
from typing import Any, Optional
98
from collections.abc import MutableMapping
9+
from typing import Any, Optional
1010

1111
from .exceptions import ScrivException
1212
from .optional import tomllib, yaml

src/scriv/scriv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import re
77
import textwrap
88
from pathlib import Path
9-
from typing import List, Optional
109
from collections.abc import Iterable
10+
from typing import Optional
1111

1212
import jinja2
1313

src/scriv/shell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import logging
44
import shlex
55
import subprocess
6-
from typing import List, Tuple, Union
6+
from typing import Union
77

88
# The return value of run_command.
99
CmdResult = tuple[bool, str]

src/scriv/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import logging
88
import re
99
import sys
10-
from typing import Dict, Optional, Tuple, TypeVar
1110
from collections.abc import Sequence
11+
from typing import TypeVar
1212

1313
import click_log
1414

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import os
44
import sys
55
import traceback
6-
from pathlib import Path
76
from collections.abc import Iterable
7+
from pathlib import Path
88

99
import pytest
1010
import responses

tests/faker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""Fake implementations of some of our external information sources."""
22

33
import shlex
4-
from typing import Callable, Dict, List, Optional, Set, Tuple
54
from collections.abc import Iterable
5+
from typing import Callable, Optional
66

77
from scriv.shell import CmdResult
88

0 commit comments

Comments
 (0)