Replace `from <module> import ...` with `import <module>`

Description

`from <module> import xyz` brought `xyz` into the namespace of the package. One then use this external function/ object without the context of its package. This is considered bad practices in Python.

`import <module>` requires user to write `<module>.xyz` when using function/object. This explicitly states that `xyz` is a function/ object within `<module>`, and not a function/ object in the current Python module.

Environment

None

Assignee

Ziming Dong

Reporter

Kimyen Truong

Labels

Validator

Ziming Dong

Development Area

None

Release Version History

None

Fix versions

Priority

Major
Configure