gabrieldemarmiesse / python-on-whales

An awesome Python wrapper for an awesome Docker CLI!
MIT License
537 stars 100 forks source link

Update pod component to use generic Iterable and Mapping types #599

Open LewisGaul opened 2 months ago

LewisGaul commented 2 months ago

Follows https://github.com/gabrieldemarmiesse/python-on-whales/pull/595, working on https://github.com/gabrieldemarmiesse/python-on-whales/issues/584.

I notice I actually used Sequence in some of the other methods... I'm now questioning whether Iterable or Sequence (or something else?) is preferably here, especially considering a string itself is a valid Iterable[str]...