Browse Source

Comments

tags/v0.3.5
EricLBuehler 1 year ago
parent
commit
aaa2881c45
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      python_special_method_derive/src/lib.rs

+ 4
- 2
python_special_method_derive/src/lib.rs View File

@@ -1,11 +1,13 @@
//! Derive macros for dora
//! Derive macros to help with Python

extern crate proc_macro;
use proc_macro::TokenStream;
use quote::quote;
use syn::{parse_macro_input, Data, DeriveInput, Fields};

// TODO: We should only list fields which are at least readableby Python users, right?
// TODO: We should only list fields which are at least readable by Python users.
// This would require either reading the visibility modifier (easier) or checking
// the `pyo3` getter

/// Add a `fields` method to the struct.
///


Loading…
Cancel
Save