Conform to 3.9 union type formatting
Signed-off-by: Will Beason <willbeason@gmail.com>
This commit is contained in:
		
							parent
							
								
									390499dd90
								
							
						
					
					
						commit
						586ae85c65
					
				| @ -11,7 +11,7 @@ from pandas import DataFrame | |||||||
| from pandas.testing import assert_frame_equal, assert_series_equal | from pandas.testing import assert_frame_equal, assert_series_equal | ||||||
| from io import StringIO | from io import StringIO | ||||||
| import tracemalloc | import tracemalloc | ||||||
| from typing import Final | from typing import Final, Union | ||||||
| 
 | 
 | ||||||
| # Make references to files and wikiq relative to this file, not to the current working directory. | # Make references to files and wikiq relative to this file, not to the current working directory. | ||||||
| TEST_DIR: Final[str] = os.path.dirname(os.path.realpath(__file__)) | TEST_DIR: Final[str] = os.path.dirname(os.path.realpath(__file__)) | ||||||
| @ -42,7 +42,7 @@ class WikiqTester: | |||||||
|     def __init__(self, |     def __init__(self, | ||||||
|                  wiki: str, |                  wiki: str, | ||||||
|                  case_name: str, |                  case_name: str, | ||||||
|                  suffix: str | None = None, |                  suffix: Union[str, None] = None, | ||||||
|                  in_compression: str = "bz2", |                  in_compression: str = "bz2", | ||||||
|                  baseline_format: str = "tsv", |                  baseline_format: str = "tsv", | ||||||
|                  out_format: str = "tsv", |                  out_format: str = "tsv", | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								wikiq
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								wikiq
									
									
									
									
									
								
							| @ -338,7 +338,7 @@ class WikiqParser: | |||||||
|         page_count = 0 |         page_count = 0 | ||||||
|         rev_count = 0 |         rev_count = 0 | ||||||
| 
 | 
 | ||||||
|         writer: pq.ParquetWriter | pc.CSVWriter |         writer: Union[pq.ParquetWriter, pc.CSVWriter] | ||||||
| 
 | 
 | ||||||
|         schema = table.schema() |         schema = table.schema() | ||||||
|         schema = schema.append(pa.field('revert', pa.bool_(), nullable=True)) |         schema = schema.append(pa.field('revert', pa.bool_(), nullable=True)) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user