Fix import

This commit is contained in:
ChillerDragon 2023-03-19 18:22:45 +01:00
parent bdfa4bf2a0
commit be2ffcc690
2 changed files with 2 additions and 6 deletions

View file

@ -67,7 +67,7 @@ ignored-modules=
# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
init-hook='import sys; sys.path.append("./twnet_parser")'
init-hook='import sys; sys.path.append("./twnet_parser"); sys.path.append(".")'
# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
# number of processors available to use, and will cap the count on Windows to

View file

@ -3,11 +3,7 @@
from typing import Union
from typing import cast
# TODO: fix mypy
import packer # type: ignore
# this is not just a mypy issue this also breaks!
# $ pip install twnet-parser==0.1.1
# $ python -c 'import twnet_parser.packet'
from twnet_parser import packer
# TODO: what is a nice pythonic way of storing those?
# also does some version:: namespace thing make sense?