GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [3.12] gh-105578: Add more usage examples to `typing.AnyStr` docs (GH-107045) by miss-islington · Pull Request #107503 · python/cpython

Conversation

@miss-islington

@miss-islington miss-islington commented Jul 31, 2023 •
edited by github-actions Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

typing.AnyStr has different semantics to str | bytes, which often leads to user confusion
(cherry picked from commit f877b32)

Co-authored-by: Michael The [email protected]

  • Issue: Discourage and deprecate typing.AnyStr #105578

📚 Documentation preview 📚: https://cpython-previews--107503.org.readthedocs.build/

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@michael-the1 @miss-islington
pythongh-105578: Add more usage examples to typing.AnyStr docs (pyt…
ec30258
…honGH-107045)

``typing.AnyStr`` has different semantics to ``str | bytes``, which often leads to user confusion
(cherry picked from commit f877b32)

Co-authored-by: Michael The <[email protected]>
@miss-islington
miss-islington requested review from AlexWaygood, Fidget-Spinner, JelleZijlstra and gvanrossum as code owners July 31, 2023 15:23
This was referenced Jul 31, 2023
Discourage and deprecate typing.AnyStr #105578
Closed
gh-105578: Add more usage examples to typing.AnyStr docs #107045
Merged
@bedevere-bot bedevere-bot added skip news awaiting review docs Documentation in the Doc dir labels Jul 31, 2023
@AlexWaygood
AlexWaygood enabled auto-merge (squash) July 31, 2023 15:24
@AlexWaygood AlexWaygood self-assigned this Jul 31, 2023
@AlexWaygood
AlexWaygood merged commit 9f58d9e into python:3.12 Jul 31, 2023
@bedevere-bot bedevere-bot removed the awaiting review label Jul 31, 2023
@miss-islington
miss-islington deleted the backport-f877b32-3.12 branch July 31, 2023 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@gvanrossum gvanrossum Awaiting requested review from gvanrossum gvanrossum is a code owner
@Fidget-Spinner Fidget-Spinner Awaiting requested review from Fidget-Spinner
@JelleZijlstra JelleZijlstra Awaiting requested review from JelleZijlstra JelleZijlstra is a code owner
@AlexWaygood AlexWaygood Awaiting requested review from AlexWaygood AlexWaygood is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@AlexWaygood AlexWaygood

Labels

docs Documentation in the Doc dir skip news

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@miss-islington @bedevere-bot @AlexWaygood @michael-the1
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.