MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / is_attr

Method is_attr

code2flow/model.py:312–319  ·  view source on GitHub ↗

Whether this node is attached to something besides the file :rtype: bool

(self)

Source from the content-addressed store, hash-verified

310 return parent
311
312 def is_attr(self):
313 """
314 Whether this node is attached to something besides the file
315 :rtype: bool
316 """
317 return (self.parent
318 and isinstance(self.parent, Group)
319 and self.parent.group_type in (GROUP_TYPE.CLASS, GROUP_TYPE.NAMESPACE))
320
321 def token_with_ownership(self):
322 """

Callers 1

token_with_ownershipMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected