Skip to content

Commit a9f7f5b

Browse files
mgxdoesteban
andauthored
Apply suggestions from code review
Co-authored-by: Oscar Esteban <[email protected]>
1 parent 4b39d29 commit a9f7f5b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

templateflow/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
del version
3838
del PackageNotFoundError
3939

40-
from . import api
41-
from .conf import update
40+
from templateflow import api
41+
from templateflow.conf import update
4242

4343
__all__ = [
4444
'__copyright__',

templateflow/conf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def _env_to_bool(envvar: str, default: bool) -> bool:
3131
f'Falling back to default value <{default}>'
3232
)
3333
return default
34-
return val
34+
return bool(val)
3535

3636

3737
TF_DEFAULT_HOME = Path.home() / '.cache' / 'templateflow'

0 commit comments

Comments
 (0)