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

POC: add Unset and UnsetType #116

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

POC: add Unset and UnsetType #116

wants to merge 1 commit into from

Conversation

BurnzZ
Copy link
Contributor

@BurnzZ BurnzZ commented Jan 24, 2023

POC for now.

Used in zytedata/zyte-common-items#21.

@codecov
Copy link

codecov bot commented Jan 24, 2023

Codecov Report

Merging #116 (8bb7d94) into master (2edfe5d) will decrease coverage by 0.32%.
The diff coverage is 66.66%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #116      +/-   ##
==========================================
- Coverage   99.56%   99.24%   -0.32%     
==========================================
  Files          25       25              
  Lines         921      929       +8     
==========================================
+ Hits          917      922       +5     
- Misses          4        7       +3     
Impacted Files Coverage Δ
web_poet/fields.py 95.34% <62.50%> (-3.37%) ⬇️
web_poet/__init__.py 100.00% <100.00%> (ø)


# Represents a field that hasn't been set with any values instead of being
# None.
Unset = UnsetType()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it should be capitalized as UNSET.

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