Skip to content

Commit

Permalink
Add missing "from __future__ import annotations"
Browse files Browse the repository at this point in the history
  • Loading branch information
vdusek committed Dec 3, 2023
1 parent 2f22c70 commit 0c89f8f
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/check_version_availability.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python3

from __future__ import annotations

from utils import get_current_package_version, get_published_package_versions

# Checks whether the current package version number was not already used in a published release.
Expand Down
2 changes: 2 additions & 0 deletions scripts/check_version_in_changelog.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python3

from __future__ import annotations

import re

from utils import REPO_ROOT, get_current_package_version
Expand Down
2 changes: 2 additions & 0 deletions scripts/print_current_package_version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python3

from __future__ import annotations

from utils import get_current_package_version

# Print the current package version from the pyproject.toml file to stdout
Expand Down
2 changes: 2 additions & 0 deletions scripts/update_version_for_prerelease.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python3

from __future__ import annotations

import re
import sys

Expand Down
2 changes: 2 additions & 0 deletions scripts/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import json
import pathlib
from urllib.error import HTTPError
Expand Down
2 changes: 2 additions & 0 deletions tests/integration/actor_source_base/src/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import asyncio
import logging

Expand Down
2 changes: 2 additions & 0 deletions tests/integration/actor_source_base/src/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from apify import Actor


Expand Down

0 comments on commit 0c89f8f

Please sign in to comment.