use lambdas so imports dont run, use __qualname__
This commit is contained in:
parent
48865039bf
commit
e79f51c25d
3 changed files with 13 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue