Skip to content

Commit c6768e6

Browse files
committed
from __future__ import annotations
Add a few missing
1 parent 509245f commit c6768e6

File tree

11 files changed

+20
-1
lines changed

11 files changed

+20
-1
lines changed

distutils/archive_util.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
Utility functions for creating archive files (tarballs, zip files,
44
that sort of thing)."""
55

6+
from __future__ import annotations
7+
68
import os
79
from typing import Literal, overload
810

distutils/command/bdist.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
Implements the Distutils 'bdist' command (create a built [binary]
44
distribution)."""
55

6+
from __future__ import annotations
7+
68
import os
79
import warnings
810
from collections.abc import Callable

distutils/command/build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
Implements the Distutils 'build' command."""
44

5+
from __future__ import annotations
6+
57
import os
68
import sys
79
import sysconfig

distutils/command/build_clib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
that is included in the module distribution and needed by an extension
55
module."""
66

7-
87
# XXX this module has *lots* of code ripped-off quite transparently from
98
# build_ext.py -- not surprisingly really, as the work required to build
109
# a static library from a collection of C source files is not really all
@@ -13,6 +12,7 @@
1312
# necessary refactoring to account for the overlap in code between the
1413
# two modules, mainly because a number of subtle details changed in the
1514
# cut 'n paste. Sigh.
15+
from __future__ import annotations
1616

1717
import os
1818
from collections.abc import Callable

distutils/command/build_ext.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
modules (currently limited to C extensions, should accommodate C++
55
extensions ASAP)."""
66

7+
from __future__ import annotations
8+
79
import contextlib
810
import os
911
import re

distutils/command/install.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
Implements the Distutils 'install' command."""
44

5+
from __future__ import annotations
6+
57
import contextlib
68
import itertools
79
import os

distutils/command/sdist.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
Implements the Distutils 'sdist' command (create a source distribution)."""
44

5+
from __future__ import annotations
6+
57
import os
68
import sys
79
from collections.abc import Callable

distutils/compilers/C/msvc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# finding DevStudio (through the registry)
1212
# ported to VS 2005 and VS 2008 by Christian Heimes
1313
# ported to VS 2015 by Steve Dower
14+
from __future__ import annotations
1415

1516
import contextlib
1617
import os

distutils/extension.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
Provides the Extension class, used to describe C/C++ extension
44
modules in setup scripts."""
55

6+
from __future__ import annotations
7+
68
import os
79
import warnings
810
from collections.abc import Iterable

distutils/filelist.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
and building lists of files.
55
"""
66

7+
from __future__ import annotations
8+
79
import fnmatch
810
import functools
911
import os

0 commit comments

Comments
 (0)