mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
ruff: Fix UP007 Use X | Y for type annotations.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
e08a24e47f
commit
531b34cb4c
@@ -3,7 +3,7 @@ import os
|
||||
import subprocess
|
||||
import sys
|
||||
from argparse import ArgumentParser
|
||||
from typing import Iterable, Optional
|
||||
from typing import Iterable
|
||||
|
||||
from scripts.lib.zulip_tools import get_dev_uuid_var_path
|
||||
from version import PROVISION_VERSION
|
||||
@@ -49,7 +49,7 @@ Do this: `./tools/provision`
|
||||
"""
|
||||
|
||||
|
||||
def get_provisioning_status() -> tuple[bool, Optional[str]]:
|
||||
def get_provisioning_status() -> tuple[bool, str | None]:
|
||||
version_file = get_version_file()
|
||||
if not os.path.exists(version_file):
|
||||
# If the developer doesn't have a version_file written by
|
||||
|
||||
Reference in New Issue
Block a user