@@ -213,7 +213,7 @@ def get_choices(self) -> Choices:
213213``argparse._ActionsContainer.add_argument`` has been patched to support several
214214custom parameters used for tab completion and nargs range parsing. These
215215parameters are registered using ``register_argparse_argument_parameter()``.
216- See ``__ActionsContainer_add_argument `` for more details on these parameters.
216+ See ``_ActionsContainer_add_argument `` for more details on these parameters.
217217
218218Registering a parameter whitelists it for use in ``add_argument()`` and
219219automatically adds getter and setter accessor methods to the ``argparse.Action``
@@ -413,7 +413,7 @@ def _choices_callable_validator(self: argparse.Action, value: Any) -> Any:
413413
414414
415415# Add new attributes to argparse.Action.
416- # See __ActionsContainer_add_argument () for details on these attributes.
416+ # See _ActionsContainer_add_argument () for details on these attributes.
417417register_argparse_argument_parameter ('choices_provider' , validator = _choices_callable_validator )
418418register_argparse_argument_parameter ('completer' , validator = _choices_callable_validator )
419419register_argparse_argument_parameter ('table_columns' )
@@ -429,7 +429,7 @@ def _choices_callable_validator(self: argparse.Action, value: Any) -> Any:
429429orig_actions_container_add_argument = argparse ._ActionsContainer .add_argument
430430
431431
432- def __ActionsContainer_add_argument ( # noqa: N802
432+ def _ActionsContainer_add_argument ( # noqa: N802
433433 self : argparse ._ActionsContainer ,
434434 * args : Any ,
435435 nargs : int | str | tuple [int ] | tuple [int , int ] | tuple [int , float ] | None = None ,
@@ -555,7 +555,7 @@ def __ActionsContainer_add_argument( # noqa: N802
555555
556556
557557# Overwrite _ActionsContainer.add_argument with our patch
558- setattr (argparse ._ActionsContainer , 'add_argument' , __ActionsContainer_add_argument )
558+ setattr (argparse ._ActionsContainer , 'add_argument' , _ActionsContainer_add_argument )
559559
560560
561561############################################################################################################
0 commit comments