Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Remove indication for keyword argurments
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez committed Nov 12, 2020
1 parent 7cd66a6 commit a9a758c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/misc/cachefunc.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ cdef class CachedFunction(object):
for ((args,kwargs), val) in P(arglist2):
self.set_cache(val, *args, **kwargs)

def cached_function(func, *, classmethod=False, name=None, key=None, do_pickle=None):
def cached_function(func, classmethod=False, name=None, key=None, do_pickle=None):
return decorate(func, CachedFunction(func, classmethod=classmethod, name=name, key=key, do_pickle=do_pickle))


Expand Down Expand Up @@ -1433,7 +1433,7 @@ cdef class WeakCachedFunction(CachedFunction):
self.cache = CachedWeakValueDictionary(**kwds)


def weak_cached_function(func, *, classmethod=False, name=None, key=None, **kwds):
def weak_cached_function(func, classmethod=False, name=None, key=None, **kwds):
return decorate(func, WeakCachedFunction(func, classmethod=classmethod, name=name, key=key, **kwds))

class CachedMethodPickle(object):
Expand Down

0 comments on commit a9a758c

Please sign in to comment.