Get a mutable dict of annotations on an object.
Changing values on the dict changes the annotations of the object.
It’s smart enough to handle properties, ...
Parameters: |
|
---|---|
Returns: | annotations of the object or None if no annotations were found and create is False |
Return type: | {object: object} |
Get name of attribute that has value, but bypass regular lookup.
It checks __dict__s directly.
Values are matched like: v == value
Parameters: |
|
---|---|
Raises AttributeError: | |
if attr wasn’t found |
|
Returns: | attribute value as found in the __dict__ |
Like getattr, but bypasses regular lookup.
It checks __dict__s directly.
Parameters: |
|
---|---|
Raises AttributeError: | |
if attr wasn’t found |
|
Returns: | attribute value as found in the __dict__ |
Like hasattr, but bypasses regular lookup.
It checks __dict__s directly.
Parameters: |
|
---|---|
Returns: | True if a dict contained name, False otherwise |
Return type: | bool |
See if its dicts contain value as value, bypassing regular lookup.
It checks __dict__s directly.
Parameters: |
|
---|---|
Returns: | True if a dict.values contained value, False otherwise |
Return type: | bool |