File: pattern_file.nb

package info (click to toggle)
nanobind 2.9.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,060 kB
  • sloc: cpp: 11,838; python: 5,862; ansic: 4,820; makefile: 22; sh: 15
file content (19 lines) | stat: -rw-r--r-- 379 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# This is a pattern file used to rewrite generated stubs

# Remove an entry
remove_me:

# Change a function signature, keep the documentation
tweak_me:
    def tweak_me(arg: int):
        \doc

# Apply a pattern to multiple places
__(lt|gt)__:
    def __\1__(self, arg: int, /) -> bool: ...

test_typing_ext.__prefix__:
    # a prefix

test_typing_ext.__suffix__:
    # a suffix