From 97533e918960c92f6d2ca97a47fa15f9617d41f5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 14 Sep 2024 23:23:49 +0200 Subject: [PATCH] documentation/python: enum.IntFlag in newer Python doesn't like NPOT. The FLAG_SEVENTEEN _is_ there if I explicitly call it, but it doesn't show up in autocompletion or help. Turning it into a power-of-two value makes it appear. Heh. Heh. --- .../inspect_all_property/inspect_all_property.html | 2 +- .../inspect_all_property/inspect_all_property/__init__.py | 2 +- .../test_python/inspect_string/inspect_string.Foo.html | 2 +- documentation/test_python/inspect_string/inspect_string.html | 2 +- .../test_python/inspect_string/inspect_string/__init__.py | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/documentation/test_python/inspect_all_property/inspect_all_property.html b/documentation/test_python/inspect_all_property/inspect_all_property.html index e7283b96..e6493d26 100644 --- a/documentation/test_python/inspect_all_property/inspect_all_property.html +++ b/documentation/test_python/inspect_all_property/inspect_all_property.html @@ -62,7 +62,7 @@
class UndocumentedEnum(enum.IntFlag): FLAG_ONE = 1 - FLAG_SEVENTEEN = 17 + FLAG_SIXTEEN = 16
diff --git a/documentation/test_python/inspect_all_property/inspect_all_property/__init__.py b/documentation/test_python/inspect_all_property/inspect_all_property/__init__.py index 3a5341af..b4dc5da5 100644 --- a/documentation/test_python/inspect_all_property/inspect_all_property/__init__.py +++ b/documentation/test_python/inspect_all_property/inspect_all_property/__init__.py @@ -33,7 +33,7 @@ _MyPrivateEnum.ANOTHER.__doc__ = "Another value" class UndocumentedEnum(enum.IntFlag): FLAG_ONE = 1 - FLAG_SEVENTEEN = 17 + FLAG_SIXTEEN = 16 class HiddenEnum(enum.Flag): pass diff --git a/documentation/test_python/inspect_string/inspect_string.Foo.html b/documentation/test_python/inspect_string/inspect_string.Foo.html index 3b5554ef..08779901 100644 --- a/documentation/test_python/inspect_string/inspect_string.Foo.html +++ b/documentation/test_python/inspect_string/inspect_string.Foo.html @@ -70,7 +70,7 @@
Inner enum
class UndocumentedInnerEnum(enum.IntFlag): FLAG_ONE = 1 - FLAG_SEVENTEEN = 17 + FLAG_SIXTEEN = 16
diff --git a/documentation/test_python/inspect_string/inspect_string.html b/documentation/test_python/inspect_string/inspect_string.html index 869f4c89..9dc7908c 100644 --- a/documentation/test_python/inspect_string/inspect_string.html +++ b/documentation/test_python/inspect_string/inspect_string.html @@ -83,7 +83,7 @@
An enum
class UndocumentedEnum(enum.IntFlag): FLAG_ONE = 1 - FLAG_SEVENTEEN = 17 + FLAG_SIXTEEN = 16
diff --git a/documentation/test_python/inspect_string/inspect_string/__init__.py b/documentation/test_python/inspect_string/inspect_string/__init__.py index 89ae9321..adb06caf 100644 --- a/documentation/test_python/inspect_string/inspect_string/__init__.py +++ b/documentation/test_python/inspect_string/inspect_string/__init__.py @@ -36,7 +36,7 @@ class Foo: class UndocumentedInnerEnum(enum.IntFlag): FLAG_ONE = 1 - FLAG_SEVENTEEN = 17 + FLAG_SIXTEEN = 16 class Subclass: """A subclass of Foo""" @@ -123,7 +123,7 @@ MyEnum.ANOTHER.__doc__ = "Another value" class UndocumentedEnum(enum.IntFlag): FLAG_ONE = 1 - FLAG_SEVENTEEN = 17 + FLAG_SIXTEEN = 16 def function(): """A function""" -- 2.30.2