Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Nfsaavedra committed Jan 23, 2024
1 parent 483fc11 commit ef3c13e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions coqpyt/coq/proof_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def __load_library(
return context

@staticmethod
def set_cache_size(size: Optional[int] = None):
def set_cache_size(size: Optional[int]):
_AuxFile._AuxFile__load_library = lru_cache(maxsize=size)(
_AuxFile.__load_library.__wrapped__,
)
Expand Down Expand Up @@ -739,7 +739,13 @@ def __is_proven(self, proof: ProofTerm) -> bool:
)

@staticmethod
def set_library_cache_size(size: Optional[int] = None):
def set_library_cache_size(size: Optional[int]):
"""Sets the size of the cache used to store the libraries of the Coq files.
Args:
size (Optional[int]): The size of the cache. If None, the cache
will have no limit.
"""
_AuxFile.set_cache_size(size)

@property
Expand Down

0 comments on commit ef3c13e

Please sign in to comment.