Skip to content

Commit

Permalink
Type for ipython var
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Nov 14, 2024
1 parent 3abfe5e commit 39f49ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/aiida/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"""

from aiida.manage.configuration import load_profile
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from IPython.core.interactiveshell import InteractiveShell

__copyright__ = (
'Copyright (c), This file is part of the AiiDA platform. '
Expand Down Expand Up @@ -94,7 +98,7 @@ def get_file_header(comment_char: str = '# ') -> str:
return '\n'.join(f'{comment_char}{line}' for line in lines)


def load_ipython_extension(ipython):
def load_ipython_extension(ipython: InteractiveShell):
"""Load the AiiDA IPython extension, using ``%load_ext aiida``."""
from .tools.ipython.ipython_magics import AiiDALoaderMagics

Expand Down

0 comments on commit 39f49ce

Please sign in to comment.