Update some data types
This commit is contained in:
parent
433be8f75d
commit
5ec3986d92
|
@ -641,7 +641,7 @@ def stop_timer(name):
|
|||
return
|
||||
|
||||
|
||||
def install_locales(path, domain='base', dir_locales=DIR['locales']):
|
||||
def install_locales(path: str, domain: str='base', dir_locales=DIR['locales']):
|
||||
path_locales = _P.join(_P(path).path, dir_locales)
|
||||
try:
|
||||
lang = gettext.translation(domain, path_locales, languages=[LANG])
|
||||
|
@ -702,7 +702,7 @@ def start():
|
|||
return
|
||||
|
||||
|
||||
def end(get_seconds=False):
|
||||
def end(get_seconds: bool=False):
|
||||
global _start
|
||||
e = now()
|
||||
td = e - _start
|
||||
|
|
Loading…
Reference in New Issue