Skip to content

feat(typing): allow annotate methods with pos_only when only have the self argument #8574

feat(typing): allow annotate methods with pos_only when only have the self argument

feat(typing): allow annotate methods with pos_only when only have the self argument #8574

Triggered via pull request November 11, 2024 15:03
Status Failure
Total duration 15m 23s
Artifacts

ci.yml

on: pull_request
Manylinux on 🐍 3.13t β€’ GIL
4m 57s
Manylinux on 🐍 3.13t β€’ GIL
🐍 3.10 β€’ CUDA 12.2 β€’ Ubuntu 22.04
6m 19s
🐍 3.10 β€’ CUDA 12.2 β€’ Ubuntu 22.04
🐍 3 β€’ NVHPC 23.5 β€’ C++17 β€’ x64
14m 58s
🐍 3 β€’ NVHPC 23.5 β€’ C++17 β€’ x64
🐍 3 β€’ ICC latest β€’ x64
8m 56s
🐍 3 β€’ ICC latest β€’ x64
🐍 3.9 β€’ Debian β€’ x86 β€’ Install
3m 58s
🐍 3.9 β€’ Debian β€’ x86 β€’ Install
Documentation build test
46s
Documentation build test
macos-13 β€’ brew install llvm
6m 10s
macos-13 β€’ brew install llvm
Matrix: centos
Matrix: clang
Matrix: deadsnakes
Matrix: gcc
Matrix: mingw
Matrix: standard
Matrix: win32-debug
Matrix: win32
Matrix: windows-2022
Matrix: windows_clang
Fit to window
Zoom out
Zoom in

Annotations

75 errors
🐍 3 β€’ Clang 5 β€’ C++14 β€’ x64
Process completed with exit code 2.
🐍 3.9 β€’ Debian β€’ x86 β€’ Install
Process completed with exit code 2.
🐍 3 β€’ Clang 15 β€’ C++20 β€’ x64
Process completed with exit code 2.
🐍 3 β€’ almalinux:9 β€’ x64
Process completed with exit code 2.
🐍 3 β€’ Clang dev β€’ C++11 β€’ x64
Process completed with exit code 2.
🐍 3 β€’ Clang 16 β€’ C++20 β€’ x64
Process completed with exit code 2.
🐍 3 β€’ GCC 9 β€’ C++20β€’ x64
Process completed with exit code 2.
🐍 3 β€’ Clang 13 β€’ C++20 β€’ x64
Process completed with exit code 2.
🐍 3.8 β€’ ubuntu-20.04 β€’ x64 -DPYBIND11_FINDPYTHON=ON -DCMAKE_CXX_FLAGS="-D_=1": tests/test_enum.py#L327
test_generated_dunder_methods_pos_only AssertionError: assert None is not None + where None = <function match at 0x7f9636ca75e0>('^__setstate__\\(self: [\\w\\.]+, state: [\\w\\.]+, /\\)', '__getstate__(self: object, /) -> int\n') + where <function match at 0x7f9636ca75e0> = re.match + and '__getstate__(self: object, /) -> int\n' = <instancemethod __getstate__ at 0x7f962794aa30>.__doc__ + where <instancemethod __getstate__ at 0x7f962794aa30> = <class 'pybind11_tests.enums.ScopedEnum'>.__getstate__
🐍 3 β€’ almalinux:8 β€’ x64
Process completed with exit code 2.
🐍 3.13 β€’ ubuntu-20.04 β€’ x64: tests/test_enum.py#L297
test_generated_dunder_methods_pos_only AssertionError: assert None is not None + where None = <function match at 0x7f693b6079c0>('^__or__\\(self: [\\w\\.]+, other: [\\w\\.]+, /\\)', 'Return self|value.') + where <function match at 0x7f693b6079c0> = re.match + and 'Return self|value.' = <method-wrapper '__or__' of pybind11_type object at 0x5619e8bad5e0>.__doc__
🐍 3.13 β€’ ubuntu-20.04 β€’ x64
Process completed with exit code 2.
🐍 3 β€’ Clang 18 β€’ C++20 β€’ x64
Process completed with exit code 2.
🐍 3 β€’ Clang 14 β€’ C++20 β€’ x64
Process completed with exit code 2.
🐍 3.11 β€’ ubuntu-latest β€’ x64: tests/test_enum.py#L297
test_generated_dunder_methods_pos_only AssertionError: assert None is not None + where None = <function match at 0x7f084e24ed40>('^__or__\\(self: [\\w\\.]+, other: [\\w\\.]+, /\\)', 'Return self|value.') + where <function match at 0x7f084e24ed40> = re.match + and 'Return self|value.' = <method-wrapper '__or__' of pybind11_type object at 0x5579e5036d60>.__doc__
🐍 3.11 β€’ ubuntu-latest β€’ x64
Process completed with exit code 2.
🐍 3.9 β€’ ubuntu-20.04 β€’ x64: tests/test_enum.py#L327
test_generated_dunder_methods_pos_only AssertionError: assert None is not None + where None = <function match at 0x7fad2da0c8b0>('^__setstate__\\(self: [\\w\\.]+, state: [\\w\\.]+, /\\)', '__getstate__(self: object, /) -> int\n') + where <function match at 0x7fad2da0c8b0> = re.match + and '__getstate__(self: object, /) -> int\n' = <instancemethod __getstate__ at 0x7fad1e813bb0>.__doc__ + where <instancemethod __getstate__ at 0x7fad1e813bb0> = <class 'pybind11_tests.enums.ScopedEnum'>.__getstate__
🐍 3.9 β€’ ubuntu-20.04 β€’ x64
Process completed with exit code 2.
🐍 3 β€’ Clang 11 β€’ C++20 β€’ x64
Process completed with exit code 2.
🐍 3 β€’ Clang 17 β€’ C++20 β€’ x64
Process completed with exit code 2.
🐍 3 β€’ GCC 10 β€’ C++17β€’ x64
Process completed with exit code 2.
🐍 3 β€’ Clang 12 β€’ C++20 β€’ x64
Process completed with exit code 2.
🐍 3 β€’ GCC 11 β€’ C++20β€’ x64
Process completed with exit code 2.
🐍 3 β€’ GCC 10 β€’ C++20β€’ x64
Process completed with exit code 2.
🐍 3 β€’ GCC 13 β€’ C++20β€’ x64
Process completed with exit code 2.
Manylinux on 🐍 3.13t β€’ GIL
Process completed with exit code 2.
🐍 3.11 (deadsnakes) β€’ x64
Process completed with exit code 2.
🐍 3.9 β€’ windows-2019 β€’ x64
Process completed with exit code 1.
🐍 3.9 β€’ MSVC 2022 C++20 β€’ x64
Process completed with exit code 1.
🐍 3.12 β€’ ubuntu-20.04 β€’ x64: tests/test_enum.py#L297
test_generated_dunder_methods_pos_only AssertionError: assert None is not None + where None = <function match at 0x7f72e907d940>('^__or__\\(self: [\\w\\.]+, other: [\\w\\.]+, /\\)', 'Return self|value.') + where <function match at 0x7f72e907d940> = re.match + and 'Return self|value.' = <method-wrapper '__or__' of pybind11_type object at 0x55b5ff6a0a60>.__doc__
🐍 3.12 β€’ ubuntu-20.04 β€’ x64
Process completed with exit code 2.
🐍 3 β€’ GCC 12 β€’ C++20β€’ x64
Process completed with exit code 2.
🐍 3.8 β€’ MSVC 2019 β€’ x86 -DCMAKE_CXX_STANDARD=17
Process completed with exit code 1.
🐍 pypy-3.10 β€’ ubuntu-20.04 β€’ x64: tests/test_enum.py#L297
test_generated_dunder_methods_pos_only TypeError: can't use a string pattern on a bytes-like object
🐍 pypy-3.10 β€’ ubuntu-20.04 β€’ x64: tests/test_pickling.py#L105
test_new_style_pickle_getstate_pos_only AttributeError: module 'pybind11_tests.pickling' has no attribute 'PickleableWithDictNew'
🐍 pypy-3.10 β€’ ubuntu-20.04 β€’ x64
Process completed with exit code 2.
🐍 3.8 β€’ windows-2019 β€’ x64 -DPYBIND11_FINDPYTHON=ON
Process completed with exit code 1.
🐍 3.11 β€’ MSVC 2019 β€’ x86 -DCMAKE_CXX_STANDARD=20
Process completed with exit code 1.
🐍 3.8 β€’ windows-2022 β€’ x64
Process completed with exit code 1.
🐍 3.10 β€’ MSVC 2019 β€’ x86 -DCMAKE_CXX_STANDARD=20
Process completed with exit code 1.
🐍 graalpy-24.1 β€’ ubuntu-20.04 β€’ x64: tests/test_enum.py#L298
test_generated_dunder_methods_pos_only TypeError: object of type 'NoneType' has no len()
🐍 graalpy-24.1 β€’ ubuntu-20.04 β€’ x64
Process completed with exit code 2.
🐍 pypy-3.9 β€’ ubuntu-20.04 β€’ x64: tests/test_enum.py#L327
test_generated_dunder_methods_pos_only AssertionError: assert None is not None + where None = <function match at 0x00007fc2f30e0200>('^__setstate__\\(self: [\\w\\.]+, state: [\\w\\.]+, /\\)', '__getstate__(self: object, /) -> int\n') + where <function match at 0x00007fc2f30e0200> = re.match + and '__getstate__(self: object, /) -> int\n' = <<instancemethod __getstate__> at 0x00007fc2f2ff63d0>.__doc__ + where <<instancemethod __getstate__> at 0x00007fc2f2ff63d0> = <class 'pybind11_tests.enums.ScopedEnum'>.__getstate__
🐍 pypy-3.9 β€’ ubuntu-20.04 β€’ x64: tests/test_pickling.py#L105
test_new_style_pickle_getstate_pos_only AttributeError: module 'pybind11_tests.pickling' has no attribute 'PickleableWithDictNew'
🐍 pypy-3.9 β€’ ubuntu-20.04 β€’ x64
Process completed with exit code 2.
🐍 3.10 β€’ windows-latest β€’ clang-latest
Process completed with exit code 1.
🐍 3.13 β€’ windows-2022 β€’ x64
Process completed with exit code 1.
🐍 3.9 β€’ macos-13 β€’ x64
Process completed with exit code 2.
macos-13 β€’ brew install llvm
Process completed with exit code 2.
🐍 3.10 β€’ CUDA 12.2 β€’ Ubuntu 22.04
Process completed with exit code 2.
🐍 3 β€’ windows-latest β€’ mingw32
Process completed with exit code 2.
🐍 3.9 β€’ MSVC 2019 (Debug) β€’ x86 -DCMAKE_CXX_STANDARD=20
Process completed with exit code 1.
🐍 3.8 β€’ macos-13 β€’ x64
Process completed with exit code 2.
🐍 3.13 β€’ macos-13 β€’ x64
Process completed with exit code 2.
🐍 3 β€’ windows-latest β€’ mingw64
Process completed with exit code 2.
🐍 graalpy-24.1 β€’ macos-13 β€’ x64
Process completed with exit code 2.
🐍 3.9 β€’ MSVC 2019 β€’ x86 -DCMAKE_CXX_STANDARD=20
Process completed with exit code 1.
🐍 pypy-3.8 β€’ ubuntu-20.04 β€’ x64 -DPYBIND11_FINDPYTHON=ON: tests/test_enum.py#L327
test_generated_dunder_methods_pos_only AssertionError: assert None is not None + where None = <function match at 0x00007fd78ca6b6a0>('^__setstate__\\(self: [\\w\\.]+, state: [\\w\\.]+, /\\)', '__getstate__(self: object, /) -> int\n') + where <function match at 0x00007fd78ca6b6a0> = re.match + and '__getstate__(self: object, /) -> int\n' = <<instancemethod __getstate__> at 0x00007fd78b289cf0>.__doc__ + where <<instancemethod __getstate__> at 0x00007fd78b289cf0> = <class 'pybind11_tests.enums.ScopedEnum'>.__getstate__
🐍 pypy-3.8 β€’ ubuntu-20.04 β€’ x64 -DPYBIND11_FINDPYTHON=ON: tests/test_pickling.py#L105
test_new_style_pickle_getstate_pos_only AttributeError: module 'pybind11_tests.pickling' has no attribute 'PickleableWithDictNew'
🐍 pypy-3.8 β€’ ubuntu-20.04 β€’ x64 -DPYBIND11_FINDPYTHON=ON
Process completed with exit code 2.
🐍 3.8 β€’ MSVC 2019 (Debug) β€’ x86 -DCMAKE_CXX_STANDARD=17
Process completed with exit code 1.
🐍 3.12 β€’ MSVC 2019 β€’ x86 -DCMAKE_CXX_STANDARD=20
Process completed with exit code 1.
🐍 pypy-3.10 β€’ windows-2022 β€’ x64
Process completed with exit code 1.
🐍 pypy-3.9 β€’ windows-2022 β€’ x64
Process completed with exit code 1.
🐍 3 β€’ ICC latest β€’ x64
Process completed with exit code 2.
🐍 3.12 β€’ macos-13 β€’ x64
Process completed with exit code 2.
🐍 pypy-3.8 β€’ windows-2022 β€’ x64
Process completed with exit code 1.
🐍 pypy-3.9 β€’ macos-13 β€’ x64
Process completed with exit code 2.
🐍 pypy-3.8 β€’ macos-13 β€’ x64
Process completed with exit code 2.
🐍 pypy-3.10 β€’ macos-13 β€’ x64
Process completed with exit code 2.
🐍 3 β€’ NVHPC 23.5 β€’ C++17 β€’ x64
Process completed with exit code 2.