@@ -70,8 +70,8 @@ def check_api(header: Header, api: Dict):
70
70
macros = api ["macros" ]
71
71
72
72
for name , obj in macros .items ():
73
- if ( not any (k in obj .keys () for k in possible_keys ) ):
74
- err = f' error: Macro { name } does not contain at least one required property: { possible_keys } '
73
+ if not any (k in obj .keys () for k in possible_keys ):
74
+ err = f" error: Macro { name } does not contain at least one required property: { possible_keys } "
75
75
errors .append (err )
76
76
77
77
# Validate functions
@@ -84,8 +84,8 @@ def check_api(header: Header, api: Dict):
84
84
85
85
fns = api ["functions" ]
86
86
for name , obj in fns .items ():
87
- if ( not any (k in obj .keys () for k in possible_keys ) ):
88
- err = f' error: function { name } does not contain at least one required property: { possible_keys } '
87
+ if not any (k in obj .keys () for k in possible_keys ):
88
+ err = f" error: function { name } does not contain at least one required property: { possible_keys } "
89
89
errors .append (err )
90
90
91
91
if errors :
@@ -133,9 +133,13 @@ def print_functions_rst(header: Header, functions: Dict):
133
133
print (" -" )
134
134
135
135
if "in-latest-posix" in functions [name ]:
136
- print (f' - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/{ name } .html>`__' )
136
+ print (
137
+ f" - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/{ name } .html>`__"
138
+ )
137
139
elif "removed-in-posix-2008" in functions [name ]:
138
- print (f' - `removed in POSIX.1-2008 <https://pubs.opengroup.org/onlinepubs/007904875/functions/{ name } .html>`__' )
140
+ print (
141
+ f" - `removed in POSIX.1-2008 <https://pubs.opengroup.org/onlinepubs/007904875/functions/{ name } .html>`__"
142
+ )
139
143
else :
140
144
print (" -" )
141
145
@@ -161,7 +165,9 @@ def print_macros_rst(header: Header, macros: Dict):
161
165
print (" -" )
162
166
163
167
if "in-latest-posix" in macros [name ]:
164
- print (f' - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/{ header .name } .html>`__' )
168
+ print (
169
+ f" - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/{ header .name } .html>`__"
170
+ )
165
171
else :
166
172
print (" -" )
167
173
print ()
0 commit comments