From d34098337d9ce9e3817461b2a61c488257d18791 Mon Sep 17 00:00:00 2001 From: jorgenengelsen Date: Wed, 2 Oct 2024 08:38:51 +0200 Subject: [PATCH] fix: py3.9 compatible typing --- modeltestsdk/client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modeltestsdk/client.py b/modeltestsdk/client.py index 2b8485b..22cba66 100644 --- a/modeltestsdk/client.py +++ b/modeltestsdk/client.py @@ -1,5 +1,7 @@ import os import sys +from typing import Optional + import requests import requests_cache import logging @@ -38,7 +40,7 @@ class Client: """ - def __init__(self, config: Config | None): + def __init__(self, config: Optional[Config]): """Initialize objects for interacting with the API""" self.config: Config = config if config is not None else Config(_env_file="../.env") self.filter = Query(method_spec='filter')