Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beartype starts logging warnings in my application #688

Closed
willarmiros opened this issue Jun 6, 2023 · 1 comment · Fixed by #691
Closed

Beartype starts logging warnings in my application #688

willarmiros opened this issue Jun 6, 2023 · 1 comment · Fixed by #691

Comments

@willarmiros
Copy link
Contributor

I have been using the spdx-3-prototype branch to generate SBOMs, and it has worked well. However after pulling in the last ~2 weeks of commits, whenever I run my code to generate a SBOM document, I get flooded with these warnings:

/Users/williamarmiros/software-projects/local-app/.venv/lib/python3.10/site-packages/beartype/_util/hint/pep/utilpeptest.py:347: BeartypeDecorHintPep585DeprecationWarning: PEP 484 type hint typing.List[spdx_tools.spdx3.model.external_map.ExternalMap] deprecated by PEP 585. This hint is scheduled for removal in the first Python version released after October 5th, 2025. To resolve this, import this hint from "beartype.typing" rather than "typing". For further commentary and alternatives, see also:
    https://beartype.readthedocs.io/en/latest/api_roar/#pep-585-deprecations
  warn(
/Users/williamarmiros/software-projects/local-app/.venv/lib/python3.10/site-packages/beartype/_util/hint/pep/utilpeptest.py:347: BeartypeDecorHintPep585DeprecationWarning: PEP 484 type hint typing.List[spdx_tools.spdx3.model.licensing.any_license_info.AnyLicenseInfo] deprecated by PEP 585. This hint is scheduled for removal in the first Python version released after October 5th, 2025. To resolve this, import this hint from "beartype.typing" rather than "typing". For further commentary and alternatives, see also:
    https://beartype.readthedocs.io/en/latest/api_roar/#pep-585-deprecations
  warn(
/Users/williamarmiros/software-projects/local-app/.venv/lib/python3.10/site-packages/beartype/_util/hint/pep/utilpeptest.py:347: BeartypeDecorHintPep585DeprecationWarning: PEP 484 type hint typing.List[spdx_tools.spdx3.model.software.software_purpose.SoftwarePurpose] deprecated by PEP 585. This hint is scheduled for removal in the first Python version released after October 5th, 2025. To resolve this, import this hint from "beartype.typing" rather than "typing". For further commentary and alternatives, see also:
    https://beartype.readthedocs.io/en/latest/api_roar/#pep-585-deprecations
  warn(
...

I tried following these instructions from beartype but it didn't work, just wanted to raise it in case you all weren't aware of this behavior change.

@armintaenzertng
Copy link
Collaborator

Thanks for raising this issue, @willarmiros! Having you as live tester is really invaluable! :)
I opened a PR that removes the warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants