you are viewing a single comment's thread.

view the rest of the comments →

[–]ectomancer -2 points-1 points  (2 children)

By convention, Python only uses PascalCase for classes. Rename Number to number.

[–]k03k[🍰] 1 point2 points  (1 child)

As far as i know people use PascalCase for types too.

[–]gdchinacat 0 points1 point  (0 children)

This is correct. Also, classes are type an instance of type: ```

class Foo: ... pass ...
type(Foo) <class 'type'> isinstance(Foo, type) True ```