Skip to content

Commit

Permalink
more precise family determination to follow the exact rules laid out …
Browse files Browse the repository at this point in the history
…in ARC docs

Co-authored-by: Malcolm Smith <[email protected]>
  • Loading branch information
samschott and mhsmith authored Dec 4, 2024
1 parent d0961b4 commit a8e9193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rubicon/objc/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def get_method_family(method_name: str) -> str:
for family in _RETURNS_RETAINED_FAMILIES:
if first_component.startswith(family):
remainder = first_component.removeprefix(family)
if remainder == "" or remainder[0].isupper():
if remainder == "" or not remainder[0].islower():
return family

return ""
Expand Down

0 comments on commit a8e9193

Please sign in to comment.