summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMark Dickinson <mdickinson@enthought.com>2021-10-21 22:09:47 (GMT)
committerGitHub <noreply@github.com>2021-10-21 22:09:47 (GMT)
commitd1b24775b462f4f28aa4929fd031899170793388 (patch)
treed1df75e96bb817654f96f38a48b98117e2ab570f /Misc
parent51375388bee7287be2d942906b48c8cf3f691e8b (diff)
downloadcpython-d1b24775b462f4f28aa4929fd031899170793388.zip
cpython-d1b24775b462f4f28aa4929fd031899170793388.tar.gz
cpython-d1b24775b462f4f28aa4929fd031899170793388.tar.bz2
bpo-44547: Make Fractions objects instances of typing.SupportsInt (GH-27851)
Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2021-08-20-10-52-40.bpo-44547.eu0iJq.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-08-20-10-52-40.bpo-44547.eu0iJq.rst b/Misc/NEWS.d/next/Library/2021-08-20-10-52-40.bpo-44547.eu0iJq.rst
new file mode 100644
index 0000000..a5f425e
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-08-20-10-52-40.bpo-44547.eu0iJq.rst
@@ -0,0 +1,2 @@
+Implement ``Fraction.__int__``, so that a :class:`fractions.Fraction`
+instance ``f`` passes an ``isinstance(f, typing.SupportsInt)`` check.