|
|
|
|
|
by heavyset_go
2087 days ago
|
|
Type annotations are just hints and aren't enforced at runtime. You can pass whatever you want into that function, and you can also create a union type with the Fraction if you want the annotations to match your application. |
|
Not really. Doing so won't cause an error at runtime, but it will produce an error when you run the type checker.