When upgrading from Python 3.11 syntax to 3.12, my TypeAliases are now type lines.
Ex:
LiteralAlias: TypeAlias = Literal['a','b','c']
becomes
type LiteralAlias = Literal['a','b','c']
With this change Polyfactory no longer recognizes the type:
E polyfactory.exceptions.ParameterException: Unsupported type: LiteralAlias
E
E Either extend the providers map or add a factory function for this type.
URL to code causing the issue
No response
MCVE
# Your MCVE code here
Steps to reproduce
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
Screenshots
"In the format of: ![SCREENSHOT_DESCRIPTION](SCREENSHOT_LINK.png)"
Logs
No response
Release Version
2.12.0
Platform
[X] Linux
[ ] Mac
[ ] Windows
[ ] Other (Please specify in the description above)
Description
When upgrading from Python 3.11 syntax to 3.12, my TypeAliases are now
type
lines.Ex:
becomes
With this change Polyfactory no longer recognizes the type:
URL to code causing the issue
No response
MCVE
Steps to reproduce
Screenshots
"In the format of:
![SCREENSHOT_DESCRIPTION](SCREENSHOT_LINK.png)
"Logs
No response
Release Version
2.12.0
Platform