GeezerVison is showing github.com — Update schema · RLBot/flatbuffers-python@5ee6761
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: Cargo.lock +7-7Lines changed: 7 additions & 7 deletions Collapse file Copy file name to clipboardExpand all lines: Cargo.toml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | [package] | 2 | 2 | name = "rlbot_flatbuffers" | 3 | | -version = "0.18.4" | | 3 | +version = "0.18.5" | 4 | 4 | edition = "2024" | 5 | 5 | description = "A Python module implemented in Rust for serializing and deserializing RLBot's flatbuffers" | 6 | 6 | repository = "https://github.com/RLBot/flatbuffers-python" | |
Collapse file Copy file name to clipboardExpand all lines: codegen/pyi.rs +4-1Lines changed: 4 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -78,7 +78,10 @@ pub fn generator(type_data: &Declarations) -> io::Result<()> { | 78 | 78 | write_fmt!(file, " {field_name}: {type_name}"); | 79 | 79 |
| 80 | 80 | write_str!(file, " \"\"\""); | 81 | | - write_fmt!(file, " `assert int({type_name}.{field_name}) == {var_val}`"); | | 81 | + write_fmt!( | | 82 | + file, | | 83 | + " `assert int({type_name}.{field_name}) == {var_val}`" | | 84 | + ); | 82 | 85 |
| 83 | 86 | if !var_info.docstrings.docstrings.is_empty() { | 84 | 87 | write_str!(file, ""); | |
Collapse file Copy file name to clipboardExpand all lines: codegen/structs.rs +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -131,7 +131,7 @@ impl<'a> StructBindGenerator<'a> { | 131 | 131 | if self.fields.is_empty() { | 132 | 132 | write_fmt!(self, "impl From<{impl_type}> for {} {{", self.name); | 133 | 133 | write_fmt!(self, " fn from(_: {impl_type}) -> Self {{"); | 134 | | - write_fmt!(self, " {} {{}}", self.name); | | 134 | + write_str!(self, " Self {}"); | 135 | 135 | write_str!(self, " }"); | 136 | 136 | write_str!(self, "}"); | 137 | 137 | write_str!(self, ""); | @@ -145,7 +145,7 @@ impl<'a> StructBindGenerator<'a> { | 145 | 145 | self, | 146 | 146 | " fn from_gil(py: Python, flat_t: {impl_type}) -> Self {{" | 147 | 147 | ); | 148 | | - write_fmt!(self, " {} {{", self.name); | | 148 | + write_str!(self, " Self {"); | 149 | 149 |
| 150 | 150 | for (field_name, field_info) in self.fields { | 151 | 151 | match &field_info.type_ { | |
Collapse file Copy file name to clipboard Collapse file Copy file name to clipboardExpand all lines: src/lib.rs +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -225,6 +225,8 @@ pynamedmodule! { | 225 | 225 | NormalGoalScoreMutator, | 226 | 226 | OvertimeMutator, | 227 | 227 | Physics, | | 228 | + PingRequest, | | 229 | + PingResponse, | 228 | 230 | PlayerConfiguration, | 229 | 231 | PlayerInfo, | 230 | 232 | PlayerInput, | |
|