E6008 Imports Errors

Imports

'%s.%s' is a module constant and cannot be assigned to

When this occurs

Attempting to modify a module's exported member

Example error message

error[E6008]: cannot assign to module member 'math.PI'

How to fix

Module-level constants and exports cannot be reassigned from outside the module.

Related errors