Merge pull request #4755 from dohvis/patch-1

Add return type on cookies.py