Skip to content

Commit

Permalink
fix: py3.9 compatible typing
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgenengelsen committed Oct 2, 2024
1 parent d716973 commit d340983
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modeltestsdk/client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import os
import sys
from typing import Optional

import requests
import requests_cache
import logging
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit d340983

Please sign in to comment.