pschanely / CrossHair

An analysis tool for Python that blurs the line between testing and type systems.
Other
996 stars 47 forks source link

`TypeError` in bytes regex #276

Closed Zac-HD closed 1 month ago

Zac-HD commented 2 months ago
import re

def binary_regex(buf: bytes) -> None:
  '''
  post: True
  '''
  re.search(b"ab+c", b".....")

raises /tmp/main.py:7: error: TypeError: when calling binary_regex(b'')

pschanely commented 1 month ago

Fixed in v0.0.64!