Comments (4)
I was thinking about syntax similar to Python's built-in typing - something like
@attr.define
class JsonPage(WebPage):
semantic_data: JsonParser['json']
@attr.define
class AnotherJsonPage(WebPage):
semantic_data: JsonParser['demjson']
from web-poet.
We can also use Annotated from stdlib.
from web-poet.
Should we close this now that we started using Annotated
?
from web-poet.
Yes we can 👍
from web-poet.
Related Issues (20)
- Installs "tests" and "tests_extra" top-level modules HOT 2
- Allowing subfields to be extracted HOT 5
- time freezing doesn't work properly with zyte-common-items HOT 6
- All per-field tests fail if one of the fields raise an exception
- ZyteItemAdapter usage in fixtures HOT 1
- `skip_nonitem_fields=True` doesn't work when the page object is an attrs class HOT 1
- A way to run just one test case HOT 2
- Map HttpResponse.status in the example implementation
- "build status" badge in README is broken
- Implement RulesRegistry.resolve
- Returns doesn't work in some subclasses HOT 2
- `_Url` to inherit from `str`
- IDE-friendly unit tests HOT 4
- A way to control the name of the folder at which tests are created HOT 1
- Document super().foo issues and workaround
- "Apply rules" instead of overrides HOT 7
- Mechanism for Page Objects declaring how HttpResponse is acquired HOT 1
- Consider removing the limitation of only having a single PO in the registry HOT 2
- Typing information is lost when @field decorator is used
- @field removes __doc__ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web-poet.