mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-11 01:10:37 +02:00
type annotation cleanup
This commit is contained in:
@ -7,6 +7,7 @@ jc changelog
|
||||
display until `iso-datetime` is removed in a future version.
|
||||
- refactor cli module
|
||||
- optimize timestamps
|
||||
- add more type annotations
|
||||
- add support for deprecating parsers
|
||||
|
||||
20220926 v1.22.0
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# type: ignore
|
||||
# Copyright (c) 2005-2010 ActiveState Software Inc.
|
||||
# Copyright (c) 2013 Eddy Petrișor
|
||||
|
||||
|
@ -685,7 +685,7 @@ class JcCli():
|
||||
self.set_custom_colors()
|
||||
|
||||
if self.verbose_debug:
|
||||
tracebackplus.enable(context=11)
|
||||
tracebackplus.enable(context=11) # type: ignore
|
||||
|
||||
if self.about:
|
||||
self.data_out = self.about_jc()
|
||||
|
@ -200,7 +200,7 @@ def _modname_to_cliname(parser_mod_name: str) -> str:
|
||||
# override parsers from <user_data_dir>/jc/jcparsers/*.py.
|
||||
# Once this list is created, extend the parsers list with it.
|
||||
local_parsers: List[str] = []
|
||||
data_dir = appdirs.user_data_dir('jc', 'jc')
|
||||
data_dir = appdirs.user_data_dir('jc', 'jc') # type: ignore
|
||||
local_parsers_dir = os.path.join(data_dir, 'jcparsers')
|
||||
if os.path.isdir(local_parsers_dir):
|
||||
sys.path.append(data_dir)
|
||||
|
@ -1,3 +1,5 @@
|
||||
# type: ignore
|
||||
|
||||
"""More comprehensive traceback formatting for Python scripts.
|
||||
To enable this module, do:
|
||||
import tracebackplus; tracebackplus.enable()
|
||||
@ -69,7 +71,6 @@ products or services of Licensee, or any third party.
|
||||
agrees to be bound by the terms and conditions of this License
|
||||
Agreement.
|
||||
'''
|
||||
|
||||
import inspect
|
||||
import keyword
|
||||
import linecache
|
||||
|
Reference in New Issue
Block a user