@@ -1259,7 +1259,7 @@ def khovanov_homology(self, ring=ZZ, height=None, degree=None, implementation='n
12591259 * ``'Khoca'`` -- uses the implementation of the optional package
12601260 ``khoca``
12611261
1262- - ``kwds`` -- dictionary of options to be passes to ``Khoca``
1262+ - ``kwds`` -- dictionary of options to be passed to ``Khoca``
12631263
12641264 * ``reduced`` -- boolean (default ``False``); if
12651265 ``True``, then returns the reduced homology
@@ -1275,6 +1275,7 @@ def khovanov_homology(self, ring=ZZ, height=None, degree=None, implementation='n
12751275 * ``root`` -- integer specifying a root of the modulus of the
12761276 Frobenius algeba
12771277
1278+
12781279 OUTPUT:
12791280
12801281 The Khovanov homology of the Link. It is given as a dictionary
@@ -1315,7 +1316,7 @@ def khovanov_homology(self, ring=ZZ, height=None, degree=None, implementation='n
13151316 sage: K.khovanov_homology(base_ring=QQ)
13161317 Traceback (most recent call last):
13171318 ...
1318- ValueError: 'base_ring' is not a valid KnownKeywords
1319+ ValueError: invalid keyword(s): [ 'base_ring']
13191320
13201321 TESTS:
13211322
@@ -1348,6 +1349,8 @@ def khovanov_homology(self, ring=ZZ, height=None, degree=None, implementation='n
13481349 check_kwds (** kwds )
13491350 elif implementation != 'native' :
13501351 raise ValueError ('%s is not a recognized implementation' )
1352+ elif kwds :
1353+ raise ValueError (f"invalid keyword(s): { list (kwds )} " )
13511354
13521355 if not self .pd_code (): # special case for the unknot with no crossings
13531356 from sage .homology .homology_group import HomologyGroup
0 commit comments