You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current type syntax is not very user friendly, we should update all the types to use type1 | type2 instead of Union[type1, type2] and type | null instead of Optional[type] as soon as possible.
Another benefit of this is that we get less imports as the new type deceleration is native and don't rely on importing Union or Optional from typing.
Hello, congrats for the interesting project.
Here you find the mod that include:
- upgrade to python 3.10 (electricitymaps#4338)
- upgraded debian slim version + instructions to reduce image footprint (lowered to 1.42GB quite 1GB less than the current one!)
- more security and less surface attack thanks to the upgraded & slim version of the base image
Also, I can perform other refactorings like the conversion from str.format() to f-string. It looks like it always works perfectly but it can reduce manual work and error for refactoring.
Also, I can perform other refactorings like the conversion from str.format() to f-string. It looks like it always works perfectly but it can reduce manual work and error for refactoring.
The problem isn't really the refactoring itself but I'm waiting for #4335 and #4337 before I do anything.
However that tool looks interesting so I'll keep it in mind when this is ready to be fixed.
The current type syntax is not very user friendly, we should update all the types to use
type1 | type2
instead ofUnion[type1, type2]
andtype | null
instead ofOptional[type]
as soon as possible.Another benefit of this is that we get less imports as the new type deceleration is native and don't rely on importing Union or Optional from typing.
The text was updated successfully, but these errors were encountered: