[gi-docgen: 1/2] correct typo of is instead of in




commit 3e05f33ae5da4f33632b377326d925e6f84a3c85
Author: aeldemery <aeldemery de gmail com>
Date:   Thu Jul 15 00:47:18 2021 +0000

    correct typo of is instead of in

 gidocgen/gir/ast.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gidocgen/gir/ast.py b/gidocgen/gir/ast.py
index e3a86ad..3d6e2ed 100644
--- a/gidocgen/gir/ast.py
+++ b/gidocgen/gir/ast.py
@@ -903,7 +903,7 @@ class Namespace:
     def find_prerequisite_type(self, name: str) -> T.Optional[Type]:
         if name in self._classes:
             return self._classes[name]
-        if name is self._interfaces:
+        if name in self._interfaces:
             return self._interfaces[name]
         return None
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]