Browse Source

Format

tags/v0.3.5
EricLBuehler 1 year ago
parent
commit
c40204d4d6
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      apis/python/node/src/lib.rs
  2. +1
    -1
      derive/src/lib.rs

+ 2
- 2
apis/python/node/src/lib.rs View File

@@ -200,8 +200,8 @@ impl Node {
}

// TODO: We should only list fields which are at least readableby Python users, right?
/// Get a list of the fields of this Node.
/// Get a list of the fields of this Node.
pub fn __dir__(&self) -> Vec<String> {
self.fields()
}


+ 1
- 1
derive/src/lib.rs View File

@@ -6,7 +6,7 @@ use quote::quote;
use syn::{parse_macro_input, Data, DeriveInput, Fields};

/// Add a `fields` method to the struct.
///
///
/// Because we cannot have multiple `#[pymethods]` impls, this macro
/// produces a function called `fields` which should be called from the
/// PyO3 impl.


Loading…
Cancel
Save