Big diff: Use new "|" union syntax (#5872)

This commit is contained in:
Akuli
2021-08-08 12:05:21 +03:00
committed by GitHub
parent b9adb7a874
commit ee487304d7
578 changed files with 8080 additions and 8966 deletions

View File

@@ -1,4 +1,4 @@
from typing import Any, Callable, Dict, Optional, Tuple
from typing import Any, Callable, Dict, Tuple
class make_encoder:
sort_keys: Any
@@ -11,10 +11,10 @@ class make_encoder:
item_separator: Any
def __init__(
self,
markers: Optional[Dict[int, Any]],
markers: Dict[int, Any] | None,
default: Callable[[Any], Any],
encoder: Callable[[str], str],
indent: Optional[int],
indent: int | None,
key_separator: str,
item_separator: str,
sort_keys: bool,