Skip to content

v1.3.2 - Python 3.9 Compatibility Fix

Choose a tag to compare

@aaronmedina-dev aaronmedina-dev released this 30 Jan 00:25
· 6 commits to main since this release
d3cd896

Bug Fix

Fixed Python 3.9 compatibility issue that caused installation to fail with:

TypeError: unsupported operand type(s) for |: 'types.GenericAlias' and 'NoneType'

Cause

Missing from __future__ import annotations in url_context.py. The | union syntax for type hints requires Python 3.10+, but this import enables it for Python 3.9.

Affected Users

Users running Python 3.9 who installed v1.3.0 or v1.3.1.

Upgrade

wtp --update

Or reinstall:

curl -sSL https://raw.githubusercontent.com/aaronmedina-dev/WhatThePatch/main/install.sh | bash