We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 339e9a9 commit b2e5b94Copy full SHA for b2e5b94
src/axiomatic/magic.py
@@ -1,6 +1,7 @@
1
from IPython import get_ipython # type: ignore
2
from IPython.core.magic import register_line_cell_magic, register_line_magic # type: ignore
3
from IPython.display import HTML, display # type: ignore
4
+from typing import Optional
5
6
import platformdirs # type: ignore
7
import os
@@ -16,7 +17,7 @@ class AXMagic:
16
17
client: Axiomatic
18
query: str
19
- def __init__(self, api_key: str = os.getenv("AXIOMATIC_API_KEY")):
20
+ def __init__(self, api_key: Optional[str] = os.getenv("AXIOMATIC_API_KEY")):
21
self.folder = platformdirs.user_config_dir("axiomatic")
22
23
self.api_key = api_key
0 commit comments