Skip to content

Commit

Permalink
Merge pull request #27 from sunset1995/type-hinting
Browse files Browse the repository at this point in the history
improved type-hinting, docstrings.
  • Loading branch information
BrianPugh authored Dec 15, 2024
2 parents 4e47b9d + 27b3989 commit 01eee66
Show file tree
Hide file tree
Showing 9 changed files with 452 additions and 125 deletions.
116 changes: 115 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 22 additions & 1 deletion py360convert/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
__all__ = [
"c2e",
"cube_dice2h",
"cube_dict2h",
"cube_h2dice",
"cube_h2dict",
"cube_h2list",
"cube_list2h",
"e2c",
"e2p",
"utils",
]

from . import utils
from .c2e import c2e
from .e2c import e2c
from .e2p import e2p
from .utils import *
from .utils import (
cube_dice2h,
cube_dict2h,
cube_h2dice,
cube_h2dict,
cube_h2list,
cube_list2h,
)
4 changes: 2 additions & 2 deletions py360convert/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def main():

# Convert
if args.convert == "c2e":
out = py360convert.c2e(img, h=args.h, w=args.w, mode=args.mode)
out = py360convert.c2e(img, h=args.h, w=args.w, mode=args.mode) # pyright: ignore[reportCallIssue]
elif args.convert == "e2c":
out = py360convert.e2c(img, face_w=args.w, mode=args.mode)
out = py360convert.e2c(img, face_w=args.w, mode=args.mode) # pyright: ignore[reportCallIssue]
elif args.convert == "e2p":
out = py360convert.e2p(
img,
Expand Down
Loading

0 comments on commit 01eee66

Please sign in to comment.