Skip to content

Use stricter getattr() checks for decorator functions#1146

Merged
davidism merged 2 commits intopallets:2.11.xfrom
nicki-krizek:stricter-getattr-checks
Feb 4, 2020
Merged

Use stricter getattr() checks for decorator functions#1146
davidism merged 2 commits intopallets:2.11.xfrom
nicki-krizek:stricter-getattr-checks

Conversation

@nicki-krizek
Copy link
Copy Markdown
Contributor

Explicit checks for "is True" prevents unexpected behaviour with objects
that are callable and have permissive gettatr(), such as Mock.

Fixes #1145

Explicit checks for "is True" prevents unexpected behaviour with objects
that are callable and have permissive gettatr(), such as Mock.

Fixes pallets#1145
@davidism davidism force-pushed the stricter-getattr-checks branch from 25bbfe3 to 9933324 Compare February 4, 2020 16:38
@davidism davidism changed the base branch from master to 2.11.x February 4, 2020 16:41
@davidism davidism added this to the 2.11.2 milestone Feb 4, 2020
@davidism davidism force-pushed the stricter-getattr-checks branch from 0673710 to 0429499 Compare February 4, 2020 16:58
@davidism davidism merged commit 9fe06d8 into pallets:2.11.x Feb 4, 2020
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Check that contextfunction, etc. is True

2 participants