@@ -635,17 +635,17 @@ def workhorse(node: ast.AST) -> TypeGuard[hasDOTtag] | bool:
635635
636636 @staticmethod
637637 @overload
638- def targetIs (astClass : type [hasDOTtarget_Name ], attributeCondition : Callable [[ast .Name ], bool ]) -> Callable [[ast .AST ], TypeGuard [hasDOTtarget_Name ] | bool ]:
638+ def targetIs (astClass : type [hasDOTtarget_expr ], attributeCondition : Callable [[ast .expr ], bool ]) -> Callable [[ast .AST ], TypeGuard [hasDOTtarget_expr ] | bool ]:
639639 ...
640640
641641 @staticmethod
642642 @overload
643- def targetIs (astClass : type [hasDOTtarget_NameOrAttributeOrSubscript ], attributeCondition : Callable [[ast .Name | ast . Attribute | ast . Subscript ], bool ]) -> Callable [[ast .AST ], TypeGuard [hasDOTtarget_NameOrAttributeOrSubscript ] | bool ]:
643+ def targetIs (astClass : type [hasDOTtarget_Name ], attributeCondition : Callable [[ast .Name ], bool ]) -> Callable [[ast .AST ], TypeGuard [hasDOTtarget_Name ] | bool ]:
644644 ...
645645
646646 @staticmethod
647647 @overload
648- def targetIs (astClass : type [hasDOTtarget_expr ], attributeCondition : Callable [[ast .expr ], bool ]) -> Callable [[ast .AST ], TypeGuard [hasDOTtarget_expr ] | bool ]:
648+ def targetIs (astClass : type [hasDOTtarget_NameOrAttributeOrSubscript ], attributeCondition : Callable [[ast .Name | ast . Attribute | ast . Subscript ], bool ]) -> Callable [[ast .AST ], TypeGuard [hasDOTtarget_NameOrAttributeOrSubscript ] | bool ]:
649649 ...
650650
651651 @staticmethod
@@ -706,12 +706,12 @@ def workhorse(node: ast.AST) -> TypeGuard[hasDOTupper] | bool:
706706
707707 @staticmethod
708708 @overload
709- def valueIs (astClass : type [hasDOTvalue_ConstantValueType ], attributeCondition : Callable [[ConstantValueType ], bool ]) -> Callable [[ast .AST ], TypeGuard [hasDOTvalue_ConstantValueType ] | bool ]:
709+ def valueIs (astClass : type [hasDOTvalue_boolOrNone ], attributeCondition : Callable [[bool ], bool ]) -> Callable [[ast .AST ], TypeGuard [hasDOTvalue_boolOrNone ] | bool ]:
710710 ...
711711
712712 @staticmethod
713713 @overload
714- def valueIs (astClass : type [hasDOTvalue_boolOrNone ], attributeCondition : Callable [[bool ], bool ]) -> Callable [[ast .AST ], TypeGuard [hasDOTvalue_boolOrNone ] | bool ]:
714+ def valueIs (astClass : type [hasDOTvalue_ConstantValueType ], attributeCondition : Callable [[ConstantValueType ], bool ]) -> Callable [[ast .AST ], TypeGuard [hasDOTvalue_ConstantValueType ] | bool ]:
715715 ...
716716
717717 @staticmethod
0 commit comments