From 20ab7b5442e0180669ff5d7ad4411c27c55f72f0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 15 Jun 2021 17:55:41 -0400 Subject: Don't warn for property<>getter collisions These are generally harmless. --- giscanner/introspectablepass.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/giscanner/introspectablepass.py b/giscanner/introspectablepass.py index 84c2c8e5..bf41b75e 100644 --- a/giscanner/introspectablepass.py +++ b/giscanner/introspectablepass.py @@ -257,6 +257,8 @@ class IntrospectablePass(object): if m.skip or not m.introspectable: continue if m.name == prop.name.replace('-', '_'): + if prop.attributes and prop.attributes['org.gtk.Property.get'] == m.symbol: + continue self._property_warning(obj, prop, "Properties cannot have the same name as methods") return False -- cgit v1.2.1