mne-tools / mne-connectivity

Connectivity algorithms that leverage the MNE-Python API.
https://mne.tools/mne-connectivity/dev/index.html
BSD 3-Clause "New" or "Revised" License
66 stars 34 forks source link

[Notes] Adding '%' percentage sign inside docstrings #116

Open adam2392 opened 1 year ago

adam2392 commented 1 year ago
    You probably need `%%%%`. This is because both `@fill_doc` and `@verbose` will try to complete these, so the first time through you need `%%%%` so this reduces to `%%`, which on the second `%`-operation reduces to just `%`. Or to put it in code:
>>> '%%%%' % () % ()
'%'

_Originally posted by @larsoner in https://github.com/mne-tools/mne-connectivity/pull/112#discussion_r1033587184_