patrick-kidger / torchtyping

Type annotations and dynamic checking for a tensor's shape, dtype, names, etc.
Apache License 2.0
1.41k stars 34 forks source link

Python 3.7+ compat #11

Closed AdilZouitine closed 3 years ago

AdilZouitine commented 3 years ago

Hi again :smile: ,

You will find in this pull request some modifications in the code and tests to make them compatible with python 3.7 +. My code is available at the code review.

However, versions 3.7 and 3.8 in the CI are missing (I tested in local on python 3.7 and 3.9).

patrick-kidger commented 3 years ago

Looks good to me.

If you could add 3.7 and 3.8 to the CI that would be good -- it should just be a matter of adding them to the matrix here:

https://github.com/patrick-kidger/torchtyping/blob/cf13bcd4f93da34ad9b6805d69bcb8f7657e25dd/.github/workflows/ci.yaml#L32

Also, could you modify the setup.py to:

AdilZouitine commented 3 years ago

:tada:

patrick-kidger commented 3 years ago

Can you bump the version number here:

https://github.com/patrick-kidger/torchtyping/blob/cf13bcd4f93da34ad9b6805d69bcb8f7657e25dd/torchtyping/__init__.py#L13

to 0.1.1 please?

Also, do you have a Twitter handle? I'll make a post about this, and would be happy to credit you.

AdilZouitine commented 3 years ago

Can you bump the version number here:

https://github.com/patrick-kidger/torchtyping/blob/cf13bcd4f93da34ad9b6805d69bcb8f7657e25dd/torchtyping/__init__.py#L13

to 0.1.1 please?

Also, do you have a Twitter handle? I'll make a post about this, and would be happy to credit you.

Yes my Twitter is https://twitter.com/AdilZtn thanks you ! :smile: