From 546808ae8f7e898a6073a4934ab7bff44b571dd5 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Sat, 24 Feb 2024 08:56:06 +0000 Subject: [PATCH] Use python3.9 typing union syntax --- Lib/fontbakery/sphinx_extensions/profile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/fontbakery/sphinx_extensions/profile.py b/Lib/fontbakery/sphinx_extensions/profile.py index 38abd3b1fc..cc4282c013 100644 --- a/Lib/fontbakery/sphinx_extensions/profile.py +++ b/Lib/fontbakery/sphinx_extensions/profile.py @@ -1,4 +1,4 @@ -from typing import Any +from typing import Any, Optional import m2r from sphinx.application import Sphinx @@ -29,7 +29,7 @@ def can_document_member( def add_content( self, - more_content: Any | None, + more_content: Optional[Any], # no_docstring: bool = False, ) -> None: super().add_content(more_content) @@ -96,7 +96,7 @@ def can_document_member( def add_content( self, - more_content: Any | None, + more_content: Optional[Any], # no_docstring: bool = False, ) -> None: source_name = self.get_sourcename()