It is far from complete typing but it is much further along. The most useful cases should be covered mostly.
I made types.io private by convention because an IDE might give that as an option in auto-completion and the types.io module does not exist in the real code.
I filled in most of the type arguments for dict.
Generally if something accepts list[str] I made it also accept tuple[str, ...] but I examined the relevant code in docker-py to make sure.
I ran black on the project.
Hope you can make a new release soon with these.
Edit: Yes I know for list[str] | tuple[str, ...] it should actually be Sequence[str] but the major downside to this is that str | list[str] | tuple[str, ...] == Sequence[str] and 99% of the the time str is not a valid argument for these cases.
Resolves #2
It is far from complete typing but it is much further along. The most useful cases should be covered mostly.
I made
types.io
private by convention because an IDE might give that as an option in auto-completion and thetypes.io
module does not exist in the real code.I filled in most of the type arguments for
dict
.Generally if something accepts
list[str]
I made it also accepttuple[str, ...]
but I examined the relevant code in docker-py to make sure.I ran
black
on the project.Hope you can make a new release soon with these.
Edit: Yes I know for
list[str] | tuple[str, ...]
it should actually beSequence[str]
but the major downside to this is thatstr | list[str] | tuple[str, ...] == Sequence[str]
and 99% of the the timestr
is not a valid argument for these cases.