Skip to content

Commit

Permalink
Add autocomplete in IPython and import if type hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Feb 19, 2024
1 parent 12ca97c commit 84cd75d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions geoviews/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,16 @@ def __getattr__(attr):
from . import operation
return operation
raise AttributeError(f"module {__name__} has no attribute {attr!r}")

__all__ = [k for k in locals() if not k.startswith('_')]
__all__ += ['annotate', 'project', 'operation']

def __dir__():
return __all__

from typing import TYPE_CHECKING

if TYPE_CHECKING:
from .annotators import annotate
from .operation import project
from . import operation

0 comments on commit 84cd75d

Please sign in to comment.