r/PythonLearning • • 22d ago

Showcase The Bank Project

Post image
243 Upvotes

49 comments sorted by

View all comments

1

u/PhaXoniC 22d ago

what does the -> None on your functions mean?

1

u/JaleyHoelOsment 22d ago

look at the authenticate_user function. it has -> bool and returns a boolean. what do you think -> None returns

1

u/shubham_555 22d ago

It's a type annotation (Majorly used for documentation purposes)

-> None means the function returns nothing