Iterable Object

__len__Gives your object a collection length. __contains__For checking membership (e.g. using in). __iter__Makes your object iterable. yield lets you send data back […]

Read More

Custom Types

Sometimes you can’t specify your types just with the built-in types. In that case, you can us Optional, Union, and List from the typing module to […]

Read More