Skip to content

Commit c7e7c60

Browse files
committed
refactor: rename _pptx module to pptx and update imports accordingly
1 parent 1ad0347 commit c7e7c60

File tree

18 files changed

+20
-19
lines changed

18 files changed

+20
-19
lines changed

src/tppt/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""Typed Python PowerPoint Tool"""
22

33
from tppt import types as types
4-
from tppt._pptx.presentation import Presentation
5-
from tppt._pptx.shape import Shape
6-
from tppt._pptx.slide import Slide, SlideBuilder
7-
from tppt._pptx.slide_layout import SlideLayout
8-
from tppt._pptx.slide_master import SlideMaster
4+
from tppt.pptx.presentation import Presentation
5+
from tppt.pptx.shape import Shape
6+
from tppt.pptx.slide import Slide, SlideBuilder
7+
from tppt.pptx.slide_layout import SlideLayout
8+
from tppt.pptx.slide_master import SlideMaster
99
from tppt.slide_layout import Placeholder, TpptSlideLayout
1010
from tppt.slide_master import TpptSlideMaster
1111

File renamed without changes.
File renamed without changes.

src/tppt/_pptx/placeholder.py renamed to src/tppt/pptx/placeholder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from pptx.shapes.placeholder import LayoutPlaceholder as PptxLayoutPlaceholder
44
from pptx.shapes.placeholder import SlidePlaceholder as PptxSlidePlaceholder
55

6-
from tppt._pptx.presentation import PptxConvertible
6+
from tppt.pptx.presentation import PptxConvertible
77

88

99
class SlidePlaceholder(PptxConvertible[PptxSlidePlaceholder]):

src/tppt/_pptx/presentation.py renamed to src/tppt/pptx/presentation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from pptx.presentation import Presentation as PptxPresentation
77

8-
from tppt._pptx.tree import ppt2dict
8+
from tppt.pptx.tree import ppt2dict
99
from tppt.slide_layout import TpptSlideLayout
1010
from tppt.slide_master import (
1111
DefaultSlideMaster,
@@ -18,7 +18,7 @@
1818
from .slide_master import SlideMaster
1919

2020
if TYPE_CHECKING:
21-
from tppt._pptx.slide import Slide
21+
from tppt.pptx.slide import Slide
2222

2323

2424
class Presentation(PptxConvertible[PptxPresentation]):
@@ -34,7 +34,7 @@ def __init__(
3434
@property
3535
def slides(self) -> "list[Slide]":
3636
"""Get the slides."""
37-
from tppt._pptx.slide import Slide
37+
from tppt.pptx.slide import Slide
3838

3939
return [Slide.from_pptx(slide) for slide in self._pptx.slides]
4040

src/tppt/_pptx/shape/__init__.py renamed to src/tppt/pptx/shape/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from pptx.shapes.base import BaseShape as PptxBaseShape
66
from typing_extensions import TypeVar
77

8-
from tppt._pptx.converter import PptxConvertible
8+
from tppt.pptx.converter import PptxConvertible
99
from tppt.types._length import Length, LiteralLength
1010

1111
GenericPptxShape = TypeVar(

src/tppt/_pptx/shape/background.py renamed to src/tppt/pptx/shape/background.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from pptx.slide import _Background as PptxBackground
44

5-
from tppt._pptx.converter import PptxConvertible
5+
from tppt.pptx.converter import PptxConvertible
66

77

88
class Background(PptxConvertible[PptxBackground]):
File renamed without changes.
File renamed without changes.

src/tppt/_pptx/shape/text.py renamed to src/tppt/pptx/shape/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from pptx.enum.text import MSO_ANCHOR, MSO_AUTO_SIZE, PP_ALIGN
44
from pptx.shapes.autoshape import Shape as PptxShape
55

6-
from tppt._pptx.converter import to_pptx_color, to_pptx_length
6+
from tppt.pptx.converter import to_pptx_color, to_pptx_length
77
from tppt.types._color import Color, LiteralColor
88
from tppt.types._length import Length, LiteralLength
99

0 commit comments

Comments
 (0)