File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Lib /** linguist-vendored
22Cargo.lock linguist-generated
33* .snap linguist-generated - merge
4- vm /src /stdlib /ast /gen.rs linguist-generated - merge
54Lib /* .py text working-tree-encoding =UTF-8 eol =LF
65** /* .rs text working-tree-encoding =UTF-8 eol =LF
7- crates /rustpython_doc_db /src /* .inc.rs linguist-generated =true
6+ crates /vm /src /stdlib /ast /gen.rs linguist-generated - merge
7+ crates /doc /src /data.inc.rs generated
8+ crates /compiler-core /src /bytecode /opcode_metadata.rs generated
9+
10+ .github /workflows /* .lock.yml linguist-generated =true merge =ours
811
912# Binary data types
1013* .aif binary
@@ -45,10 +48,11 @@ Lib/venv/scripts/posix/* text eol=lf
4548# Language aware diff headers
4649# https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more
4750# https://gist.github.com/tekin/12500956bd56784728e490d8cef9cb81
48- * .css diff =css
49- * .html diff =html
50- * .py diff =python
51- * .md diff =markdown
51+ * .css diff =css
52+ * .html diff =html
53+ * .py diff =python
54+ * .md diff =markdown
55+ * .inc.rs diff =rust
5256
5357# Generated files
5458# https://github.com/github/linguist/blob/master/docs/overrides.md
@@ -66,6 +70,3 @@ Lib/test/certdata/*.0 generated
6670Lib /test /levenshtein_examples.json generated
6771Lib /test /test_stable_abi_ctypes.py generated
6872Lib /token.py generated
69- crates /compiler-core /src /bytecode /opcode_metadata.rs generated
70-
71- .github /workflows /* .lock.yml linguist-generated =true merge =ours
Original file line number Diff line number Diff line change @@ -185,23 +185,7 @@ def find_doc_entries() -> "Iterable[DocEntry]":
185185 )
186186 yield from (doc_entry for doc_entry in traverse (__builtins__ , __builtins__ ))
187187
188- builtin_types = [
189- type (None ),
190- type (bytearray ().__iter__ ()),
191- type (bytes ().__iter__ ()),
192- type (dict ().__iter__ ()),
193- type (dict ().items ()),
194- type (dict ().items ().__iter__ ()),
195- type (dict ().values ()),
196- type (dict ().values ().__iter__ ()),
197- type (lambda : ...),
198- type (list ().__iter__ ()),
199- type (memoryview (b"" ).__iter__ ()),
200- type (range (0 ).__iter__ ()),
201- type (set ().__iter__ ()),
202- type (str ().__iter__ ()),
203- type (tuple ().__iter__ ()),
204- ]
188+ builtin_types = object .__subclasses__ ()
205189
206190 # Add types from the types module (e.g., ModuleType, FunctionType, etc.)
207191 for name in dir (types ):
You can’t perform that action at this time.
0 commit comments