type hint some files
This commit is contained in:
parent
0e74212c43
commit
a8a0255624
13 changed files with 643 additions and 62 deletions
|
@ -1,7 +1,9 @@
|
|||
from tkinter import messagebox
|
||||
|
||||
import grpc
|
||||
|
||||
def show_grpc_error(e):
|
||||
|
||||
def show_grpc_error(e: grpc.RpcError):
|
||||
title = [x.capitalize() for x in e.code().name.lower().split("_")]
|
||||
title = " ".join(title)
|
||||
title = f"GRPC {title}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue