This commit is contained in:
Sam Chen 2026-03-16 12:58:32 -04:00 committed by GitHub
commit 1307e7d29f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,13 @@
from typing import Optional
import datetime
import os
import sys
# Fix Windows console encoding for Unicode support
if sys.platform == "win32":
import codecs
sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())
sys.stderr = codecs.getwriter("utf-8")(sys.stderr.detach())
import typer
from pathlib import Path
from functools import wraps