File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 55from  time  import  asctime 
66from  typing  import  TYPE_CHECKING 
77
8+ from  docutils  import  nodes 
89from  sphinx .builders .text  import  TextBuilder 
910from  sphinx .util  import  logging 
1011from  sphinx .util .display  import  status_iterator 
1112from  sphinx .util .docutils  import  new_document 
1213from  sphinx .writers .text  import  TextTranslator 
13- from  docutils  import  nodes 
1414
1515if  TYPE_CHECKING :
1616    from  collections .abc  import  Sequence , Set 
103103    "yield" ,
104104})
105105
106+ 
106107class  PydocTextTranslator (TextTranslator ):
107-     def  visit_grammar_snippet (self , node : Element ) ->  None :
108+     def  visit_grammar_snippet (self , node : nodes . Element ) ->  None :
108109        """For grammar snippets, return the "input" as is.""" 
109110        self .new_state ()
110111        self .add_text (self .nl .join (node .grammar_snippet_content ))
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments