We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code:
from wypp import * @record class Course: name: str teacher: str students: tuple[str, ...] @record(mutable=True) class CourseM: name: str teacher: str students: tuple[str, ...] @record class Semester: degreeProgram: str semester: str courses: tuple[CourseM, ...] prog1 = Course('Programmierung 1', 'Wehr', ()) semester1_2020 = Semester('AKI', '1. Semester 2020/21', (prog1, ))
Error:
untypy.error.UntypyTypeError given: Course(name='Programmierung 1', teacher='Wehr', students=()) expected: value of type CourseM context: Semester(degreeProgram: str, semester: str, courses: tuple[CourseM, ...]) -> Self ^^^^^^^ declared at: caused by: test.py:22 22 | semester1_2020 = Semester('AKI', '1. Semester 2020/21', (prog1, ))
The error is correct, but the "declared at" part is missing.
The text was updated successfully, but these errors were encountered:
Duplicate of #13. Fixed by #22
Sorry, something went wrong.
Yeah!
No branches or pull requests
Code:
Error:
The error is correct, but the "declared at" part is missing.
The text was updated successfully, but these errors were encountered: