use lambdas so imports dont run, use __qualname__

This commit is contained in:
Sean Breckenridge 2021-10-28 11:49:10 -07:00
parent 48865039bf
commit e79f51c25d
3 changed files with 13 additions and 6 deletions

View file

@ -16,14 +16,14 @@ def _rexport_import() -> Any:
return source
def _rexport_comments() -> Iterator[Comment]:
yield from imp(_rexport_import().comments)
yield from imp(lambda: _rexport_import().comments())
def _pushshift_import() -> Any:
from . import pushshift as source
return source
def _pushshift_comments() -> Iterator[Comment]:
yield from imp(_pushshift_import().comments)
yield from imp(lambda: _pushshift_import().comments())
# Merged functions