QuTech-Delft / OpenSquirrel

A flexible (Python-based) quantum program compiler
Apache License 2.0
5 stars 2 forks source link

[Code] Replace `List` with `list` #199

Closed rturrado closed 3 months ago

rturrado commented 3 months ago

And maybe Dict, Type, and other types from typing.

Check this comment from Stan's.

And quoting part of his comment here:

I specifically used list over List from typing as that version is deprecated (see).

This indeed is not immediately compatible with Python 3.8. However, in 99% of the cases this can be solved by adding from __future__ import annotations at the top of the file.