From aaa2881c456f68ca5ab19a8a3fa52e4e986cd989 Mon Sep 17 00:00:00 2001 From: EricLBuehler Date: Wed, 12 Jun 2024 07:13:46 -0400 Subject: [PATCH] Comments --- python_special_method_derive/src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python_special_method_derive/src/lib.rs b/python_special_method_derive/src/lib.rs index 77ca2b5c..1b889718 100644 --- a/python_special_method_derive/src/lib.rs +++ b/python_special_method_derive/src/lib.rs @@ -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. ///