From 6396637e9d5dc2505d9457a2d7e9a037039127d3 Mon Sep 17 00:00:00 2001 From: Steve Canny Date: Fri, 2 Aug 2024 15:25:14 -0700 Subject: [PATCH] fix: #943 Docstring implies Px subtype of Length https://github.com/scanny/python-pptx/issues/943 Remove mention of a `Px` subtype of `Length` since no such subtype exists. Turns out a pixel has various sizes on different systems so no standard unit of measure is possible. --- HISTORY.rst | 5 +++++ src/pptx/util.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 1f5d4e58..6cbff8b3 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,6 +3,11 @@ Release History --------------- +0.6.24-dev0 ++++++++++++++++++++ + +- fix: #943 remove mention of a Px Length subtype + 0.6.23 (2023-11-02) +++++++++++++++++++ diff --git a/src/pptx/util.py b/src/pptx/util.py index bbe8ac20..fdec7929 100644 --- a/src/pptx/util.py +++ b/src/pptx/util.py @@ -7,7 +7,7 @@ class Length(int): - """Base class for length classes Inches, Emu, Cm, Mm, Pt, and Px. + """Base class for length classes Inches, Emu, Cm, Mm, and Pt. Provides properties for converting length values to convenient units. """