kopia lustrzana https://github.com/inkstitch/inkstitch
Minor changes
rodzic
09da8964d2
commit
55493cbdec
|
@ -31,6 +31,9 @@ if [ "$?" != "0" ]; then
|
|||
fi
|
||||
```
|
||||
|
||||
Type Annotations
|
||||
================
|
||||
|
||||
We encourage the use of type annotations in Python code.
|
||||
Type annotations make the code easier to read and understand, for example by making it clear what kinds of data functions accept as arguments and return.
|
||||
Editors and IDEs can also read this type information to power features like autocomplete.
|
||||
|
|
|
@ -291,7 +291,7 @@ def with_monkeytype(extension, remaining_args, profile_file_path: Path) -> None:
|
|||
|
||||
See https://monkeytype.readthedocs.io/en/stable/generation.html for usage instructions.
|
||||
'''
|
||||
import monkeytype # type: ignore[import-untyped,import-not-found]
|
||||
import monkeytype # type: ignore[import-not-found]
|
||||
|
||||
# Monkeytype will use these environment variables for the db path and to filter the modules respectively.
|
||||
# This is easier than using monkeytype's actual config API, anyway.
|
||||
|
@ -302,5 +302,5 @@ def with_monkeytype(extension, remaining_args, profile_file_path: Path) -> None:
|
|||
with monkeytype.trace():
|
||||
extension.run(args=remaining_args)
|
||||
|
||||
print(f"Profiler: monkeytype, db written to '{dbpath}'.\n\
|
||||
Run 'MT_DB_PATH={dbpath} monkeytype ...' from the inkstitch repo directory.", file=sys.stderr)
|
||||
print(f"Profiler: monkeytype, db written to '{dbpath}'.\n\n" +
|
||||
f"Run 'MT_DB_PATH={dbpath} monkeytype ...' from the inkstitch repo directory.", file=sys.stderr)
|
||||
|
|
|
@ -11,8 +11,6 @@ from pyembroidery.EmbThread import EmbThread
|
|||
|
||||
|
||||
class ThreadColor(object):
|
||||
hex_str_re = re.compile('#([0-9a-z]{3}|[0-9a-z]{6})', re.I)
|
||||
|
||||
def __init__(self, color, name=None, number=None, manufacturer=None, description=None, chart=None):
|
||||
'''
|
||||
avoid error messages:
|
||||
|
|
Ładowanie…
Reference in New Issue