-
Notifications
You must be signed in to change notification settings - Fork 201
Labels
Description
Describe the Bug
import os
from pathlib import Path
def load_config(config_path: str | None = None):
config_path = None
config_path = config_path or os.getenv("CONFIG_PATH", "./configs/deploy.yaml")
config_file = Path(config_path)
return config_file
print(load_config())Python: 3.12
config_path should be str instead of str | None in Path function.
Sandbox Link
(Only applicable for extension issues) IDE Information
No response
ABcDexter