What is the -> python operator used for?

Hi everyone,

I've been researching various python libraries to extract data from pdf files.

Currently, I'm exploring PyMuPDF

After installing it, I try to run a basic script to get the number of pages in the pdf file.

However, the following runtime error occurs.

File "/usr/local/apps/PyMuPDF-1.18.17/fitz/fitz.py", line 1281
def is_rectangular(self) -> bool:                           
SyntaxError: invalid syntax

Can anyone explain what that -> operator is?

Thanks