scrapy / parsel

Parsel lets you extract data from XML/HTML documents using XPath or CSS selectors
BSD 3-Clause "New" or "Revised" License
1.13k stars 144 forks source link

Fix mypy issues in parsel. #261

Closed wRAR closed 1 year ago

wRAR commented 1 year ago

Fixes #254

This enables running mypy for the parsel directory and fixes the issues printed by that.

There will be an additional PR about further typing improvements later.

codecov[bot] commented 1 year ago

Codecov Report

Merging #261 (d21a5bb) into master (deceb29) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #261   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            4         4           
  Lines          138       138           
  Branches        29        29           
=========================================
  Hits           138       138           
Impacted Files Coverage Δ
parsel/utils.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.