File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Original file line number Diff line number Diff line change @@ -805,7 +805,8 @@ def docstring_for_c_string(
805
805
806
806
def output_templates (
807
807
self ,
808
- f : Function
808
+ f : Function ,
809
+ clinic : Clinic
809
810
) -> dict [str , str ]:
810
811
parameters = list (f .parameters .values ())
811
812
assert parameters
@@ -1324,7 +1325,6 @@ def parser_body(
1324
1325
cpp_if = "#if " + conditional
1325
1326
cpp_endif = "#endif /* " + conditional + " */"
1326
1327
1327
- assert clinic is not None
1328
1328
if methoddef_define and f .full_name not in clinic .ifndef_symbols :
1329
1329
clinic .ifndef_symbols .add (f .full_name )
1330
1330
methoddef_ifndef = normalize_snippet ("""
@@ -1490,7 +1490,7 @@ def render_function(
1490
1490
parameters = f .render_parameters
1491
1491
converters = [p .converter for p in parameters ]
1492
1492
1493
- templates = self .output_templates (f )
1493
+ templates = self .output_templates (f , clinic )
1494
1494
1495
1495
f_self = parameters [0 ]
1496
1496
selfless = parameters [1 :]
@@ -4613,7 +4613,7 @@ def parse(self, block: Block) -> None:
4613
4613
self .next (self .state_terminal )
4614
4614
self .state (None )
4615
4615
4616
- block .output .extend (self .clinic .language .render (clinic , block .signatures ))
4616
+ block .output .extend (self .clinic .language .render (self . clinic , block .signatures ))
4617
4617
4618
4618
if self .preserve_output :
4619
4619
if block .output :
You can’t perform that action at this time.
0 commit comments