mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-11-22 08:17:28 +00:00
Import future annotations so the gate tests load on Python 3.9
The test file annotates with `str | None` and `Path | None`. Python evaluates these when it defines each function, and Python 3.9, the stock macOS python3, has no `|` on types. So the import raised a TypeError, and discovery of the whole scripts/tests folder failed. With the future import, Python keeps the annotations as strings and does not evaluate them.
This commit is contained in:
parent
217b522ec3
commit
54e691e419
@ -1,3 +1,5 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
from pathlib import Path
|
||||
import shutil
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user