1
1
import csv
2
2
from _typeshed import Incomplete
3
- from collections .abc import Callable
3
+ from collections .abc import Callable , Sequence
4
4
from typing import ClassVar , Final
5
5
6
+ from docutils import nodes
6
7
from docutils .parsers .rst import Directive
7
8
8
9
__docformat__ : Final = "reStructuredText"
@@ -20,7 +21,7 @@ class Table(Directive):
20
21
def extend_short_rows_with_empty_cells (self , columns , parts ) -> None : ...
21
22
22
23
class RSTTable (Table ):
23
- def run (self ): ...
24
+ def run (self ) -> Sequence [ nodes . table | nodes . system_message ] : ...
24
25
25
26
class CSVTable (Table ):
26
27
class DocutilsDialect (csv .Dialect ):
@@ -48,7 +49,7 @@ class CSVTable(Table):
48
49
@staticmethod
49
50
def check_requirements () -> None : ...
50
51
def process_header_option (self ): ...
51
- def run (self ): ...
52
+ def run (self ) -> Sequence [ nodes . table | nodes . system_message ] : ...
52
53
def get_csv_data (self ): ...
53
54
@staticmethod
54
55
def decode_from_csv (s ): ...
@@ -57,6 +58,6 @@ class CSVTable(Table):
57
58
def parse_csv_data_into_rows (self , csv_data , dialect , source ): ...
58
59
59
60
class ListTable (Table ):
60
- def run (self ): ...
61
+ def run (self ) -> Sequence [ nodes . table | nodes . system_message ] : ...
61
62
def check_list_content (self , node ): ...
62
- def build_table_from_list (self , table_data , col_widths , header_rows , stub_columns ): ...
63
+ def build_table_from_list (self , table_data , col_widths , header_rows , stub_columns ) -> nodes . table : ...
0 commit comments