Skip to content

Conversation

PCManticore
Copy link
Contributor

Steps

  • For new features or bug fixes, add a ChangeLog entry describing what your PR does.
  • Write a good description on what the PR does.

Description

We were using the same class definition for both bytes and str, which resulted in the wrong thing being inferred when deducing x.encode() or x.decode().

Type of Changes

Type
🐛 Bug fix

Related Issue

Fixes pylint-dev/pylint#3599

@PCManticore PCManticore merged commit ec96745 into master Jun 23, 2020
@PCManticore PCManticore deleted the switch-str-unicode branch June 23, 2020 06:17
brycepg pushed a commit to brycepg/astroid that referenced this pull request Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

E0308: bytes not recognized after encode
1 participant