From f3537ab5144083b348951bffaeed1480dd80b708 Mon Sep 17 00:00:00 2001 From: Fabio Caccamo Date: Mon, 18 Dec 2023 12:38:39 +0100 Subject: [PATCH] Fix docs return type. --- README.md | 2 +- fontbro/font.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 90b109f..4129fcc 100644 --- a/README.md +++ b/README.md @@ -486,7 +486,7 @@ Gets the variable instance by style name, eg. style_name = 'Bold' :type style_name: str :returns: The variable instance matching the given style name. -:rtype: str or None +:rtype: dict or None """ instance = font.get_variable_instance_by_style_name(style_name="Bold") ``` diff --git a/fontbro/font.py b/fontbro/font.py index 5feadba..37bca09 100644 --- a/fontbro/font.py +++ b/fontbro/font.py @@ -931,7 +931,7 @@ def get_variable_instance_by_style_name(self, style_name): :type style_name: str :returns: The variable instance matching the given style name. - :rtype: str or None + :rtype: dict or None """ instances = self.get_variable_instances() for instance in instances: