[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnulib-tool.py: Use 'Any' instead of type unions in GLConfig.
From: |
Collin Funk |
Subject: |
gnulib-tool.py: Use 'Any' instead of type unions in GLConfig. |
Date: |
Thu, 4 Apr 2024 21:53:05 -0700 |
User-agent: |
Mozilla Thunderbird |
Also, removing these large type unions and using 'Any'. I've ran all
the test cases with Python 3.7 to double check it is compatible.
If we have 'var' of type 'str | bool' and we are sure it is a string
and want to do this:
new_var = var.split(' ')
you will see warnings from type checkers because bool doesn't have a
split method. Since these type unions are so large, Any makes more sense.
Collin
0003-gnulib-tool.py-Use-Any-instead-of-type-unions-in-GLC.patch
Description: Text Data
- gnulib-tool.py: Fix 'consider-using-with' pylint warnings., Collin Funk, 2024/04/05
- gnulib-tool.py: Use 'Any' instead of type unions in GLConfig.,
Collin Funk <=
- Re: gnulib-tool.py: Fix 'consider-using-with' pylint warnings., Bruno Haible, 2024/04/05
- Re: gnulib-tool.py: Fix 'consider-using-with' pylint warnings., Collin Funk, 2024/04/05
- Re: gnulib-tool.py: lists vs. sets, Bruno Haible, 2024/04/06
- Re: gnulib-tool.py: lists vs. sets, Collin Funk, 2024/04/06
- Re: gnulib-tool.py: lists vs. sets, Bruno Haible, 2024/04/07
- Re: gnulib-tool.py: lists vs. sets, Collin Funk, 2024/04/07
- Re: Python list micro-benchmarks, Bruno Haible, 2024/04/07
- Re: Python list micro-benchmarks, Collin Funk, 2024/04/07
- Re: Python list micro-benchmarks, Paul Eggert, 2024/04/07