Skip to content

Bug with IRect contains method #4575

Open
@jamie-lemon

Description

@jamie-lemon

Description of the bug

The IRect contains method seems to be absent.

How to reproduce the bug

I'm doing:

import pymupdf

irectA = pymupdf.IRect(0,0,100,100)
irectB = pymupdf.IRect(150,150,100,100)

contains = irectA.contains(irectB)

print(f"contains={contains}")

But it has an error with: AttributeError: 'IRect' object has no attribute 'contains'

PyMuPDF version

1.26.1

Operating system

MacOS

Python version

3.13

Metadata

Metadata

Assignees

Labels

bugfix developedrelease schedule to be determined

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions