Sfoglia il codice sorgente

Merge pull request #662 from chsasank/sasank/docs-2

add end options in docstring
tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.10.0
Erez Shinan 4 anni fa
committed by GitHub
parent
commit
418cdda526
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. +2
    -1
      lark/lark.py

+ 2
- 1
lark/lark.py Vedi File

@@ -88,6 +88,8 @@ class LarkOptions(Serialize):
Accept an input of type ``bytes`` instead of ``str`` (Python 3 only).
edit_terminals
A callback for editing the terminals before parse.

**=== End Options ===**
"""
if __doc__:
__doc__ += OPTIONS_DOC
@@ -306,7 +308,6 @@ class Lark(Serialize):
with FS.open(cache_fn, 'wb') as f:
self.save(f)

# TODO: merge with above
__doc__ += "\n\n" + LarkOptions.OPTIONS_DOC

__serialize_fields__ = 'parser', 'rules', 'options'


Caricamento…
Annulla
Salva