mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 01:08:10 +02:00
Add more type annotations
This commit is contained in:
@@ -146,7 +146,7 @@ class Manager:
|
||||
self.failed_specs[fid] = ftc.status
|
||||
else:
|
||||
if ftc.status == 'OK':
|
||||
self.state == State.transferring
|
||||
self.state = State.transferring
|
||||
return ''
|
||||
else:
|
||||
return ftc.status
|
||||
|
||||
@@ -5,7 +5,7 @@ import os
|
||||
from contextlib import contextmanager
|
||||
from datetime import timedelta
|
||||
from mimetypes import guess_type
|
||||
from typing import Callable, Generator, Union, cast
|
||||
from typing import Callable, Generator, Union
|
||||
|
||||
from kitty.fast_data_types import truncate_point_for_length, wcswidth
|
||||
from kitty.types import run_once
|
||||
@@ -154,8 +154,7 @@ def short_uuid_func() -> Callable[[], str]:
|
||||
|
||||
|
||||
def random_id() -> str:
|
||||
f = short_uuid_func()
|
||||
return cast(str, f())
|
||||
return short_uuid_func()()
|
||||
|
||||
|
||||
@contextmanager
|
||||
|
||||
Reference in New Issue
Block a user