Visitar URL original
Add `from __future__ import annotations` to all src/ Python files (#1… · pyca/cryptography@d472f97 · GitHub
Skip to content

Commit d472f97

Browse files
alexclaude
andauthored
Add from __future__ import annotations to all src/ Python files (#15371)
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. Claude-Session: https://claude.ai/code/session_01RxhHMqmQbqHobfoidB1iFT Co-authored-by: Claude <noreply@anthropic.com>
1 parent 908773d commit d472f97

8 files changed

Lines changed: 15 additions & 0 deletions

File tree

‎src/_cffi_src/__init__.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from __future__ import annotations

‎src/_cffi_src/openssl/__init__.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# This file is dual licensed under the terms of the Apache License, Version
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
4+
5+
from __future__ import annotations

‎src/cryptography/hazmat/asn1/__init__.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5+
from __future__ import annotations
6+
57
from cryptography.hazmat.asn1.asn1 import (
68
TLV,
79
BitString,
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# This file is dual licensed under the terms of the Apache License, Version
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
4+
5+
from __future__ import annotations
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# This file is dual licensed under the terms of the Apache License, Version
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
4+
5+
from __future__ import annotations
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# This file is dual licensed under the terms of the Apache License, Version
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
4+
5+
from __future__ import annotations
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# This file is dual licensed under the terms of the Apache License, Version
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
4+
5+
from __future__ import annotations

‎src/cryptography/hazmat/primitives/serialization/base.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5+
from __future__ import annotations
6+
57
from cryptography.hazmat.bindings._rust import openssl as rust_openssl
68

79
load_pem_private_key = rust_openssl.keys.load_pem_private_key

0 commit comments

Comments
 (0)