BjornFJohansson / pydna

Clone with Python! Data structures for double stranded DNA & simulation of homologous recombination, Gibson assembly, cut & paste cloning.
Other
166 stars 45 forks source link

Type hinting #176

Open manulera opened 10 months ago

manulera commented 10 months ago

@BjornFJohansson what we discussed today. Once we have done the big merge, I will do a PR adding type hinting to at least some of the classes. This can be very useful for newcomers, to know exactly what the outputs of functions will be, and get intellisense from IDEs.

manulera commented 4 months ago

@JeffXiePL will also give a go at this @BjornFJohansson.

I have been looking around for libraries to check types dynamically while running the tests. It seems that typeguard would be a good choice, but I found some problems when trying to implement it. I will see if I figure it out, otherwise we can also not check.

dgruano commented 2 months ago

Don't hesitate to use Copilot to help you with this, so far I've had good experiences with it