Skip to content

Commit 1dba556

Browse files
fix: add future annotations for Python 3.9 compatibility
1 parent 8a17d10 commit 1dba556

5 files changed

Lines changed: 10 additions & 0 deletions

File tree

src/gcf/decode.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""GCF decoder: parses GCF text back into a Payload."""
22

3+
from __future__ import annotations
4+
35
from .constants import KIND_EXPAND
46
from .types import Edge, Payload, Symbol
57

src/gcf/encode.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""GCF encoder: serializes Payload into GCF text format."""
22

3+
from __future__ import annotations
4+
35
from .constants import KIND_ABBREV
46
from .types import Payload, Symbol
57

src/gcf/generic.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""GCF generic encoder: serializes arbitrary Python values into GCF tabular format."""
22

3+
from __future__ import annotations
4+
35
from typing import Any
46

57

src/gcf/session.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Session-based deduplication for GCF encoding."""
22

3+
from __future__ import annotations
4+
35
import threading
46

57
from .constants import KIND_ABBREV

src/gcf/types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Data types for GCF payloads."""
22

3+
from __future__ import annotations
4+
35
from dataclasses import dataclass, field
46

57

0 commit comments

Comments
 (0)