Skip to content

Commit 1e83f5c

Browse files
committed
style: remove from future import annotations
Signed-off-by: Henry Schreiner <[email protected]>
1 parent ff6691b commit 1e83f5c

File tree

93 files changed

+63
-239
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+63
-239
lines changed

bin/bump_version.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
# ///
66

77

8-
from __future__ import annotations
9-
108
import os
119
import subprocess
1210
import sys

bin/inspect_all_known_projects.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
the results without the `--online` setting.
1212
"""
1313

14-
from __future__ import annotations
15-
1614
import ast
1715
from collections.abc import Iterable, Iterator
1816
from pathlib import Path

bin/make_dependency_update_pr.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python3
22

3-
from __future__ import annotations
43

54
import os
65
import subprocess

bin/projects.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
git diff
1818
"""
1919

20-
from __future__ import annotations
21-
2220
import builtins
2321
import functools
2422
import textwrap
@@ -28,7 +26,7 @@
2826
from datetime import datetime
2927
from io import StringIO
3028
from pathlib import Path
31-
from typing import Any, TextIO
29+
from typing import Any, Self, TextIO
3230

3331
import click
3432
import yaml
@@ -85,7 +83,7 @@ def __init__(self, config: Mapping[str, Any], github: Github | None = None):
8583
name_len = len(self.name) + 4
8684
self.__class__.NAME = max(self.__class__.NAME, name_len)
8785

88-
def __lt__(self, other: Project) -> bool:
86+
def __lt__(self, other: Self) -> bool:
8987
if self.online:
9088
return self.num_stars < other.num_stars
9189
else:

bin/run_example_ci_configs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python3
22

3-
from __future__ import annotations
43

54
import os
65
import shutil

bin/run_tests.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python3
22

3-
from __future__ import annotations
43

54
import argparse
65
import os

bin/sample_build.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python3
22

3-
from __future__ import annotations
43

54
import argparse
65
import os

bin/update_docker.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python3
2-
from __future__ import annotations
32

43
import configparser
54
from dataclasses import dataclass

bin/update_how_it_works_image.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python3
22

3-
from __future__ import annotations
43

54
import subprocess
65
import sys

bin/update_nodejs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python3
22

3-
from __future__ import annotations
43

54
import difflib
65
import logging

0 commit comments

Comments
 (0)