@@ -27,7 +27,6 @@ def __init__( # pylint: disable=too-many-arguments
2727 is_parent : bool = False ,
2828 parent : Optional [str ] = None ,
2929 depth : int = 0 ,
30- option_variants : Optional [Dict [Tuple , Self ]] = None ,
3130 ) -> None :
3231 """
3332 Parses a single Schema node into a argument the CLI can use when making
@@ -127,18 +126,12 @@ def __init__( # pylint: disable=too-many-arguments
127126 "instead of object's properties! This is a programming error."
128127 )
129128
130- #: A mapping between option keys and argument variants.
131- #: This is necessary because argparse requires a merged list of options
132- #: but we still want to preserve these arguments for use in help pages.
133- self .option_variants = option_variants or {}
134-
135129
136130def _parse_request_model (
137131 schema : Schema ,
138132 prefix : Optional [str ] = None ,
139133 parent : Optional [str ] = None ,
140134 depth : int = 0 ,
141- option_path : Optional [Tuple [str , ...]] = None ,
142135) -> List [OpenAPIRequestArg ]:
143136 """
144137 Parses an OpenAPI schema into a list of OpenAPIRequest objects
@@ -179,7 +172,6 @@ def _parse_request_model(
179172 # NOTE: We do not increment the depth because dicts do not have
180173 # parent arguments.
181174 depth = depth ,
182- option_path = option_path ,
183175 )
184176
185177 # Handle arrays of objects that not marked as JSON
@@ -211,7 +203,6 @@ def _parse_request_model(
211203 prefix = pref ,
212204 parent = pref ,
213205 depth = depth + 1 ,
214- option_path = option_path ,
215206 )
216207 else :
217208 args .append (
0 commit comments