From da8ee1df3e7bc501ebed9d6e8a222f6cdfaa2931 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sun, 6 Nov 2022 21:24:46 -0500 Subject: [PATCH] Add TODO in flake8_annotations --- src/flake8_annotations/plugins.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/flake8_annotations/plugins.rs b/src/flake8_annotations/plugins.rs index c237397df5..e5dbe0aa3d 100644 --- a/src/flake8_annotations/plugins.rs +++ b/src/flake8_annotations/plugins.rs @@ -73,6 +73,8 @@ fn match_returns(stmt: &Stmt) -> &Option> { /// Generate flake8-annotation checks for a given `Definition`. pub fn definition(checker: &mut Checker, definition: &Definition, visibility: &Visibility) { + // TODO(charlie): Consider using the AST directly here rather than `Definition`. We could adhere + // more closely to `flake8-annotations` by defining public vs. secret vs. protected. match &definition.kind { DefinitionKind::Module => {} DefinitionKind::Package => {}