Page MenuHomePhabricator

crecord: null out the curses attribute with `None` on failure to import
ClosedPublic

Authored by mharbison72 on Mar 13 2021, 2:33 PM.

Details

Summary

Pytype got really confused that this could be Union[module, bool], and spewed
about tons of attributes that are not available on bool.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.