Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbrodbeck committed May 2, 2022
1 parent 80d4944 commit 5868f20
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions eelbrain/_experiment/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,21 +442,21 @@ def find_keys(self, temp, root=True):
# remove duplicates
return list(dict.fromkeys(keys))

def format(self, string, vmatch=True, **kwargs):
def format(self, string: str, vmatch: bool = True, **kwargs) -> str:
"""Format a string (i.e., replace any '{xxx}' fields with their values)
Parameters
----------
string : str
string
Template string.
vmatch : bool
vmatch
For fields with known names, only allow existing field names.
others :
...
State parameters.
Returns
-------
formatted_string : str
str
The template temp formatted with current state values.
"""
self.set(match=vmatch, **kwargs)
Expand Down

0 comments on commit 5868f20

Please sign in to comment.