We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a86c319 commit edf782eCopy full SHA for edf782e
pypdf/generic/_base.py
@@ -569,7 +569,7 @@ def write_to_stream(
569
@staticmethod
570
def read_from_stream(stream: StreamType) -> Union["NumberObject", "FloatObject"]:
571
num = read_until_regex(stream, NumberObject.NumberPattern)
572
- if num.find(b".") != -1:
+ if b"." in num:
573
return FloatObject(num)
574
return NumberObject(num)
575
0 commit comments