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 _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor