Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content

Add from __future__ import annotations to all src/ Python files - #15371

Merged
reaperhulk merged 1 commit into
mainfrom
claude/future-annotations-import-rg77qe
Jul 31, 2026
Merged

reaperhulk merged 1 commit into
mainfrom
claude/future-annotations-import-rg77qe

Conversation

@alex

@alex alex commented Jul 31, 2026

Copy link
Copy Markdown
Member

96 of the 104 Python source files under src/ already carried from __future__ import annotations. This adds it to the remaining 8 so the convention holds uniformly across the tree:

  • src/_cffi_src/__init__.py
  • src/_cffi_src/openssl/__init__.py
  • src/cryptography/hazmat/asn1/__init__.py
  • src/cryptography/hazmat/bindings/__init__.py
  • src/cryptography/hazmat/bindings/openssl/__init__.py
  • src/cryptography/hazmat/primitives/__init__.py
  • src/cryptography/hazmat/primitives/asymmetric/__init__.py
  • src/cryptography/hazmat/primitives/serialization/base.py

The import is placed after the license header, matching the placement in the files that already had it. src/_cffi_src/__init__.py was previously empty, so it now contains only the import line.

The .pyi stubs under src/cryptography/hazmat/bindings/_rust/ are left alone — stub files are never evaluated at runtime and type checkers already treat their annotations lazily, so the import would be a no-op there.

No changelog entry, as there is no user-visible behavior change.

Verified with nox -e flake (ruff check, ruff format --check, mypy, check-sdist), all passing.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RxhHMqmQbqHobfoidB1iFT


Generated by Claude Code

96 of the 104 Python source files under `src/` already carried this
import; this adds it to the remaining 8 so the convention holds
uniformly across the tree.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RxhHMqmQbqHobfoidB1iFT
@reaperhulk
reaperhulk merged commit d472f97 into main Jul 31, 2026
134 of 136 checks passed
@reaperhulk
reaperhulk deleted the claude/future-annotations-import-rg77qe branch July 31, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants