From 14b4660ec9a3ea868360ef14ca5c94ed043cfe01 Mon Sep 17 00:00:00 2001 From: Matthias Goerner <1239022+unhyperbolic@users.noreply.github.com> Date: Wed, 24 Jul 2024 00:33:17 -0700 Subject: [PATCH] Adding type annotation to signature of triangulation_isosig. --- cython/core/triangulation.pyx | 8 ++++---- doc_src/conf.py | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/cython/core/triangulation.pyx b/cython/core/triangulation.pyx index 8e8f82bd..f8c1c22f 100644 --- a/cython/core/triangulation.pyx +++ b/cython/core/triangulation.pyx @@ -2886,10 +2886,10 @@ cdef class Triangulation(): return get_num_fake_cusps(self.c_triangulation) > 0 def triangulation_isosig(self, - decorated=True, - ignore_cusp_ordering = False, - ignore_curve_orientations = False, - ignore_orientation = True) -> str: + decorated : bool = True, + ignore_cusp_ordering : bool = False, + ignore_curve_orientations : bool = False, + ignore_orientation : bool = True) -> str: """ Returns a compact text representation of the triangulation, called a "decorated isomorphism signature" diff --git a/doc_src/conf.py b/doc_src/conf.py index 6602f86d..0aed3cec 100644 --- a/doc_src/conf.py +++ b/doc_src/conf.py @@ -210,3 +210,6 @@ def setup(app): # Output file base name for HTML help builder. htmlhelp_basename = 'SnapPydoc' + +# This adds the type annotations to the params section instead of the signature. +# autodoc_typehints = "description"