Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammed Yasin <[email protected]>
  • Loading branch information
Y-T-G authored Jan 16, 2025
1 parent 954a48e commit cfd3608
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoimport/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ def __repr__(self):

class lazy:
"""Context manager for lazy imports."""
_lazy_modules = {}

def __init__(self):
"""Initializes a context manager for lazy module imports to optimize startup time and memory usage."""
self._original_import = builtins.__import__
self._lazy_modules = {} # Store lazy modules here
self._globals = None

def __enter__(self):
Expand Down

0 comments on commit cfd3608

Please sign in to comment.