TomSchammo / datastructures

Collection of data-structures for my personal use. Also trying out some cool stuff.
MIT License
0 stars 0 forks source link

Implement support for types of the `typing` module #4

Open TomSchammo opened 2 years ago

TomSchammo commented 2 years ago

Types from the typing module are currently not supported by the strict function decorator.

TomSchammo commented 2 years ago

This can be solved by using isinstance, however I'd then have to rewrite some tests because bool is actually an instance of int. But using isinstance seem to be the right thing to do.