[Tutor] Union
Mats Wichmann
mats at wichmann.us
Mon Aug 12 17:12:24 EDT 2019
On 8/12/19 2:50 PM, Jim wrote:
> I was reading the docs for PySimpbleGUI here:
> https://pysimplegui.readthedocs.io/en/latest/#building-custom-windows
>
> In the table of parameters for the Window() function for example the
> icon parameter the meaning is Union[str, str] Can be either a filename
> or Base64 value.
>
> What is the usage of "Union". I don't recall seeing anything like it
> before.
it's type annotation. Search here:
https://docs.python.org/3/library/typing.html
More information about the Tutor
mailing list