Skip to content

Commit

Permalink
return numbers of hydrated and lazy objects from hydrate_lazy_objects
Browse files Browse the repository at this point in the history
Summary: `hydrate_lazy_objects` used to return numbers of hydrated and lazy objects in 3.10, which could help diagnose issues. This diff makes it behave the same as 3.10.

Reviewed By: Kronuz

Differential Revision: D59477773

fbshipit-source-id: f5ef89aad50fee139e2688d77ebe1d9d9458cc04
  • Loading branch information
yulong-zhang-1 authored and facebook-github-bot committed Jul 9, 2024
1 parent 90d7cbb commit b39f5b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/importlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def is_lazy_import(dictionary, key):


def hydrate_lazy_objects():
_imp.hydrate_lazy_objects()
return _imp.hydrate_lazy_objects()


def set_lazy_imports(enable = True, /, excluding = None, eager = None):
Expand Down

0 comments on commit b39f5b4

Please sign in to comment.