fix: add from __future__ import annotations to fix Python <3.11 compat

These two files from upstream use PEP 604 union syntax (str | None)
without the future annotations import. While the project requires
Python >=3.11, this makes local testing possible on 3.9/3.10.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Tink 2026-03-06 19:09:38 +08:00
parent f958eb4cc9
commit e868fb32d2
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,7 @@
"""Skills loader for agent capabilities."""
from __future__ import annotations
import json
import os
import re

View File

@ -1,5 +1,7 @@
"""Utility functions for nanobot."""
from __future__ import annotations
import re
from datetime import datetime
from pathlib import Path