mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-27 13:54:55 +00:00
Generic types to generic (#30)
This commit is contained in:
parent
718354673e
commit
b78001c953
5 changed files with 65 additions and 68 deletions
|
@ -279,7 +279,7 @@ class StructVisitor(EmitVisitor):
|
|||
if has_attributes:
|
||||
self.emit("pub range: R,", depth + 1)
|
||||
else:
|
||||
self.emit("pub range: crate::ranged::OptionalRange<R>,", depth + 1)
|
||||
self.emit("pub range: OptionalRange<R>,", depth + 1)
|
||||
|
||||
def simple_sum(self, sum, name, depth):
|
||||
rust_name = rust_type_name(name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue