]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44342: [Enum] fix data type search (GH-26667) 26742/head
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 15 Jun 2021 21:07:37 +0000 (14:07 -0700)
committerGitHub <noreply@github.com>
Tue, 15 Jun 2021 21:07:37 +0000 (14:07 -0700)
commit0f99324f61d5a2edd8729be5eed6f172c892af24
tree052d74749f3fd58e19d32e198b69e556cf2368dd
parent8d0b2ca493e236fcad8709a622c1ac8ad29c372d
bpo-44342: [Enum] fix data type search (GH-26667)

In an inheritance chain of

  int -> my_int -> final_int

the data type is now final_int (not my_int)
(cherry picked from commit 3a7cccfd6cd3693e1a2ab65ee05d7f45f8501dfa)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Lib/enum.py
Lib/test/test_enum.py