Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-101688: Implement types.get_original_bases#101827

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
AlexWaygood merged 45 commits intopython:mainfromGobot1234:orig_class-and-bases
Apr 23, 2023
Merged
Changes from1 commit
Commits
Show all changes
45 commits
Select commitHold shift + click to select a range
50707ba
Implement typing.get_orig_class and get_orig_bases
Gobot1234Feb 11, 2023
4fef9f8
📜🤖 Added by blurb_it.
blurb-it[bot]Feb 11, 2023
4cb193d
Apparently my lsp wasn't working
Gobot1234Feb 11, 2023
44d3ae9
Removing trailing whitespace
Gobot1234Feb 11, 2023
59e9ac2
Fix test failure
Gobot1234Feb 11, 2023
20024e9
Merge branch 'main' into orig_class-and-bases
Gobot1234Feb 11, 2023
769fdbd
Fix typo
Gobot1234Feb 11, 2023
7194d3e
Respond to initial review
Gobot1234Feb 12, 2023
eeb4475
Remove trailing ws
Gobot1234Feb 17, 2023
198dc08
Respond to second round of review
Gobot1234Feb 25, 2023
695cf93
Fix typo
Gobot1234Feb 25, 2023
cc11033
Fix last few comments
Gobot1234Apr 5, 2023
a66282b
Merge remote-tracking branch 'upstream/main' into orig_class-and-bases
Gobot1234Apr 5, 2023
d3768ba
Merge branch 'main' into orig_class-and-bases
Gobot1234Apr 5, 2023
581a91a
Apply suggestions from code review
Gobot1234Apr 6, 2023
fb15427
Remove typing.get_orig_class
Gobot1234Apr 6, 2023
96b9536
Merge remote-tracking branch 'origin/orig_class-and-bases' into orig_…
Gobot1234Apr 6, 2023
6c38e4d
Remove old test
Gobot1234Apr 6, 2023
372bd6b
Rename to get_original_bases
Gobot1234Apr 6, 2023
a6fe8ac
Autoformatting is fun
Gobot1234Apr 6, 2023
2b71b74
Fix more suggestions
Gobot1234Apr 6, 2023
e7635c6
Remove rawstring
Gobot1234Apr 6, 2023
42e1668
Apply suggestions from code review
Gobot1234Apr 7, 2023
1040478
Fix `test_types` failures
AlexWaygoodApr 8, 2023
8085258
Apply suggestions from code review
Gobot1234Apr 8, 2023
b9bf4fd
Add a whatsnew entry
Gobot1234Apr 8, 2023
ee59cbd
Update Lib/types.py
Gobot1234Apr 8, 2023
e5a91a5
Update Doc/library/types.rst
Gobot1234Apr 8, 2023
7bad429
Merge branch 'main' into orig_class-and-bases
AlexWaygoodApr 8, 2023
2a39055
Merge branch 'main' into orig_class-and-bases
Gobot1234Apr 9, 2023
1ea82be
Remove trailing WS
Gobot1234Apr 9, 2023
1cb14c2
Fix more trailing WS
Gobot1234Apr 9, 2023
6f06c52
Fallback to __bases__
Gobot1234Apr 9, 2023
689267a
Update missing docs
Gobot1234Apr 9, 2023
1ae16ea
Apply suggestions from code review
Gobot1234Apr 9, 2023
3a8619a
Update Doc/library/types.rst
Gobot1234Apr 9, 2023
e1d55d6
Merge remote-tracking branch 'upstream/main' into orig_class-and-bases
AlexWaygoodApr 11, 2023
bab8cb3
Small tweaks to docs
AlexWaygoodApr 11, 2023
fb9ef70
Use `assert` in docs examples
AlexWaygoodApr 12, 2023
dc433c4
Document type.__orig_bases__
Gobot1234Apr 12, 2023
4268b74
Revert "Document type.__orig_bases__"
Gobot1234Apr 12, 2023
9f54ac1
Update Doc/library/types.rst
Gobot1234Apr 19, 2023
c122b23
Hone docs more
AlexWaygoodApr 22, 2023
2134053
Merge remote-tracking branch 'upstream/main' into orig_class-and-bases
AlexWaygoodApr 23, 2023
cb21a65
More tests and docs following #103698
AlexWaygoodApr 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Hone docs more
  • Loading branch information
@AlexWaygood
AlexWaygood authoredApr 22, 2023
commitc122b2361f3c5ba459e879ce342ed8cd02ee6229
4 changes: 3 additions & 1 deletionDoc/library/types.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -90,7 +90,9 @@ Dynamic Type Creation
introspecting :ref:`Generics <user-defined-generics>`.

For classes that have an ``__orig_bases__`` attribute, this
function simply returns the value of ``cls.__orig_bases__``.
function returns the value of ``cls.__orig_bases__``.
For classes without the ``__orig_bases__`` attribute, ``cls.__bases__`` is
returned.

Examples::

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp