From 03be26fafc505d2943868b9991bd273babe5e39a Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 4 Jun 2023 22:59:25 +0000 Subject: [PATCH] improve check for type-hint support --- copyparty/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/copyparty/__init__.py b/copyparty/__init__.py index 16372af3..2809857d 100644 --- a/copyparty/__init__.py +++ b/copyparty/__init__.py @@ -6,7 +6,9 @@ import platform import sys import time -_: int = 1 # --->--->---> hey there! if you are reading this, your python is too old to run copyparty without some help. Please use https://github.com/9001/copyparty/releases/latest/download/copyparty-sfx.py or the pypi package instead, or see https://github.com/9001/copyparty/blob/hovudstraum/docs/devnotes.md#building if you want to build it yourself :-) +# fmt: off +_:tuple[int,int]=(0,0) # _____________________________________________________________________ hey there! if you are reading this, your python is too old to run copyparty without some help. Please use https://github.com/9001/copyparty/releases/latest/download/copyparty-sfx.py or the pypi package instead, or see https://github.com/9001/copyparty/blob/hovudstraum/docs/devnotes.md#building if you want to build it yourself :-) ************************************************************************************************************************************************ +# fmt: on try: from typing import TYPE_CHECKING