@@ -372,36 +372,36 @@ def version_comparitor(version1: str, version2: str) -> Literal[-1, 0, 1]:
372
372
373
373
374
374
class CRenderData :
375
- def __init__ (self ):
375
+ def __init__ (self ) -> None :
376
376
377
377
# The C statements to declare variables.
378
378
# Should be full lines with \n eol characters.
379
- self .declarations = []
379
+ self .declarations : list [ str ] = []
380
380
381
381
# The C statements required to initialize the variables before the parse call.
382
382
# Should be full lines with \n eol characters.
383
- self .initializers = []
383
+ self .initializers : list [ str ] = []
384
384
385
385
# The C statements needed to dynamically modify the values
386
386
# parsed by the parse call, before calling the impl.
387
- self .modifications = []
387
+ self .modifications : list [ str ] = []
388
388
389
389
# The entries for the "keywords" array for PyArg_ParseTuple.
390
390
# Should be individual strings representing the names.
391
- self .keywords = []
391
+ self .keywords : list [ str ] = []
392
392
393
393
# The "format units" for PyArg_ParseTuple.
394
394
# Should be individual strings that will get
395
- self .format_units = []
395
+ self .format_units : list [ str ] = []
396
396
397
397
# The varargs arguments for PyArg_ParseTuple.
398
- self .parse_arguments = []
398
+ self .parse_arguments : list [ str ] = []
399
399
400
400
# The parameter declarations for the impl function.
401
- self .impl_parameters = []
401
+ self .impl_parameters : list [ str ] = []
402
402
403
403
# The arguments to the impl function at the time it's called.
404
- self .impl_arguments = []
404
+ self .impl_arguments : list [ str ] = []
405
405
406
406
# For return converters: the name of the variable that
407
407
# should receive the value returned by the impl.
@@ -411,17 +411,17 @@ def __init__(self):
411
411
# value from the parse function. This is also where
412
412
# you should check the _return_value for errors, and
413
413
# "goto exit" if there are any.
414
- self .return_conversion = []
414
+ self .return_conversion : list [ str ] = []
415
415
self .converter_retval = "_return_value"
416
416
417
417
# The C statements required to do some operations
418
418
# after the end of parsing but before cleaning up.
419
419
# These operations may be, for example, memory deallocations which
420
420
# can only be done without any error happening during argument parsing.
421
- self .post_parsing = []
421
+ self .post_parsing : list [ str ] = []
422
422
423
423
# The C statements required to clean up after the impl call.
424
- self .cleanup = []
424
+ self .cleanup : list [ str ] = []
425
425
426
426
427
427
class FormatCounterFormatter (string .Formatter ):
0 commit comments