type hint some files

This commit is contained in:
Huy Pham 2020-01-10 15:32:16 -08:00
parent 0e74212c43
commit a8a0255624
13 changed files with 643 additions and 62 deletions

View file

@ -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}"