File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 77.. versionadded:: 0.4.5
88"""
99#
10- # Copyright © 2020 Dominic Davis-Foster <dominic@davis-foster.co.uk>
10+ # Copyright © 2020-2022 Dominic Davis-Foster <dominic@davis-foster.co.uk>
1111#
1212# Permission is hereby granted, free of charge, to any person obtaining a copy
1313# of this software and associated documentation files (the "Software"), to deal
4040import functools
4141import random
4242import re
43+ import sys
4344from gettext import ngettext
4445from reprlib import recursive_repr
4546from string import ascii_lowercase , ascii_uppercase
@@ -601,7 +602,8 @@ def __call__(self, n: int) -> str: # type: ignore
601602 :param n:
602603 """
603604
604- if PYPY : # pragma: no cover (!PyPy)
605+ # if PYPY: # pragma: no cover (!PyPy)
606+ if PYPY and sys .version_info < (3 , 9 ): # pragma: no cover (!PyPy)
605607
606608 def __init__ (self , singular : str , plural : str ):
607609 super ().__init__ (ngettext , singular , plural ) # type: ignore[call-arg]
You can’t perform that action at this time.
0 commit comments