Skip to content

Commit

Permalink
lint: don't import too much from root
Browse files Browse the repository at this point in the history
We'd better import NWR from yuheng.type
  • Loading branch information
LaoshuBaby committed Feb 28, 2024
1 parent 62a8719 commit 79eec19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/yuheng/plugin/driver_db_postgresql/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
current_dir = os.path.dirname(os.path.realpath(__file__))
src_dir = os.path.join(current_dir, "..", "..", "..")
sys.path.append(src_dir)
from yuheng import Node, Waifu, Way
from yuheng import Waifu
from yuheng.type import Node, Way

PROJ_TRANSFORMER = pyproj.Transformer.from_crs("epsg:3857", "epsg:4326")

Expand Down
3 changes: 2 additions & 1 deletion tests/cases/plugin_folium.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
src_dir = os.path.join(current_dir, "../../src")
sys.path.append(src_dir)

from yuheng import Member, Node, Relation, Waifu, Way
from yuheng import Waifu
from yuheng.type import Member, Node, Relation, Way
from yuheng.plugin.folium.__main__ import display


Expand Down

0 comments on commit 79eec19

Please sign in to comment.