Python Programming - Inheritance - Discussion
Discussion Forum : Inheritance - General Questions (Q.No. 54)
54.
What is the purpose of the
__annotations__
attribute in Python classes?
Answer: Option
Explanation:
The
__annotations__
attribute is used to store type annotations for class attributes and methods, providing information about the expected data types.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers