PrisonersDilemmaTournament icon indicating copy to clipboard operation
PrisonersDilemmaTournament copied to clipboard

May we import typing for static type checking?

Open create-dot opened this issue 3 years ago • 1 comments

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.

create-dot avatar May 22 '21 12:05 create-dot

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.

duckboycool avatar May 22 '21 13:05 duckboycool