From fd2901c570098c9806278743c6a84f82545498b8 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Wed, 12 May 2021 18:28:15 +0200 Subject: [PATCH] Add docstrings to style classes --- weasyprint/css/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weasyprint/css/__init__.py b/weasyprint/css/__init__.py index 0ad050ab9..4040b010c 100644 --- a/weasyprint/css/__init__.py +++ b/weasyprint/css/__init__.py @@ -595,6 +595,7 @@ def variables(self): class AnonymousStyle(Style): + """Computed style used for anonymous boxes.""" def __init__(self, parent_style): # border-*-style is none, so border-width computes to zero. # Other than that, properties that would need computing are @@ -628,6 +629,7 @@ def __missing__(self, key): class ComputedStyle(Style): + """Computed style used for non-anonymous boxes.""" def __init__(self, parent_style, cascaded, element, pseudo_type, root_style, base_url): self.specified = {}