Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xfail for attrs using string type references #1

Merged
merged 1 commit into from
Feb 10, 2020
Merged

Conversation

ivanprado
Copy link
Contributor

get_type_hint function fails on attrs classes that reference a type using a string. The reason is that __init__.__globals__ original content is lost by attrs. See python-attrs/attrs#593

This PR adds a xfail test for such a case.

@ivanprado ivanprado requested a review from kmike February 10, 2020 15:25
@codecov
Copy link

codecov bot commented Feb 10, 2020

Codecov Report

Merging #1 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master      #1   +/-   ##
======================================
  Coverage    92.1%   92.1%           
======================================
  Files           3       3           
  Lines          38      38           
  Branches        8       8           
======================================
  Hits           35      35           
  Misses          1       1           
  Partials        2       2

@kmike kmike merged commit b64bf74 into master Feb 10, 2020
@kmike
Copy link
Member

kmike commented Feb 10, 2020

Thanks @ivanprado!

@ivanprado ivanprado deleted the attrs_xfail branch February 10, 2020 15:30
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.

2 participants