Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

May we import typing for static type checking? #51

Open
create-dot opened this issue May 22, 2021 · 1 comment
Open

May we import typing for static type checking? #51

create-dot opened this issue May 22, 2021 · 1 comment

Comments

@create-dot
Copy link

I realise that as it currently stands no imports other than numpy and random are allowed. I would to like to ask @carykh to consider permitting us to use static type-checking through the typing standard library module, which provides for instance the helpful typing.Optional[sometype].

To the best of my knowledge, nothing in typing does anything to circumvent the rules of the competition.

If this can't be granted, then I suppose I will remove type signatures dependent on typing and delete the import before submission.

@duckboycool
Copy link

I'm pretty sure that parts of the standard library that don't allow for anything particularly problematic (such as ctypes or socket) are allowed. For example, I've seen some people making strategies with the standard decimal module for higher precision.

I suppose it would probably be a good idea to get confirmation on it though.

yasirroni pushed a commit to yasirroni/PrisonersDilemmaTournament that referenced this issue May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants