Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anterior Revisión previa Próxima revisión | Revisión previa | ||
|
wiki2:python:typing [2022/03/17 12:44] alfred |
wiki2:python:typing [2022/10/12 19:03] (actual) |
||
|---|---|---|---|
| Línea 49: | Línea 49: | ||
| </code> | </code> | ||
| + | Object of the previous class type: | ||
| + | <code> | ||
| + | ShopifyRequestClass: t.Type = t.Optional[ | ||
| + | t.Union[ | ||
| + | t.Type[ShopifyPaymentsRequest], | ||
| + | t.Type[ShopifyRefundsRequest], | ||
| + | ] | ||
| + | ] | ||
| + | |||
| + | ShopifyRequest = t.Type[ShopifyRequestClass] | ||
| + | </code> | ||
| + | |||
| + | ====== Links ====== | ||
| + | |||
| + | * https://towardsdatascience.com/12-beginner-concepts-about-type-hints-to-improve-your-python-code-90f1ba0ac49 | ||