Skip to content

Commit c7ea63b

Browse files
Fix Python 3.9 compatibility for type annotations
Add `from __future__ import annotations` to klayout_drc.py, logging.py, and gpio_defines.py to support `X | None` syntax on Python 3.9 (used in the Docker image). Made-with: Cursor
1 parent 10b083d commit c7ea63b

4 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/cf_precheck/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.1"
1+
__version__ = "1.0.2"

src/cf_precheck/checks/gpio_defines.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import logging
24
import os
35
import re

src/cf_precheck/checks/klayout_drc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import logging
24
import os
35
import subprocess

src/cf_precheck/logging.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import logging
24
import sys
35
from pathlib import Path

0 commit comments

Comments
 (0)