summaryrefslogtreecommitdiff
path: root/test cases/python/1 basic
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2023-10-15 17:57:45 -0400
committerEli Schwartz <eschwartz93@gmail.com>2024-02-12 18:52:43 -0500
commitfc41fd3542f1bafc0b8a2ade1ca92b25c072e054 (patch)
tree3401305302eace41fea95a214e401f85d6165329 /test cases/python/1 basic
parent4e83675bf80b0b134ef4035acce747722e9def73 (diff)
downloadmeson-fc41fd3542f1bafc0b8a2ade1ca92b25c072e054.tar.gz
add type annotations to mesonmain
An oddity: sys.stdout is statically defined as type TextIO instead of TextIOWrapper, and thus doesn't have a .reconfigure method. This is because they expect people to override sys.stdout with other objects, which we do not do. Instead, assume it is always correct. There are two final errors due to metaprogramming: ``` mesonbuild/mesonmain.py:196:13: error: Returning Any from function declared to return "int" [no-any-return] mesonbuild/mesonmain.py:225:9: error: Returning Any from function declared to return "int" [no-any-return] ```
Diffstat (limited to 'test cases/python/1 basic')
0 files changed, 0 insertions, 0 deletions