Skip to content

Commit

Permalink
Type for ipython var
Browse files Browse the repository at this point in the history
[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
  • Loading branch information
unkcpz committed Nov 14, 2024
1 parent 3abfe5e commit 59d7923
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/aiida/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,15 @@
More information at http://www.aiida.net
"""

from __future__ import annotations

from typing import TYPE_CHECKING

from aiida.manage.configuration import load_profile

if TYPE_CHECKING:
from IPython.core.interactiveshell import InteractiveShell

__copyright__ = (
'Copyright (c), This file is part of the AiiDA platform. '
'For further information please visit http://www.aiida.net/. All rights reserved.'
Expand Down Expand Up @@ -94,7 +101,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 59d7923

Please sign in to comment.