Comments (2)
Aha! If I add some extra indentation within the code fence, it seems to do the trick.
So this:
Usage:
```
>>> r: Maybe[int, str] = get_a_maybe()
>>> if is_some(r):
... r # r is of type Some[int]
... elif is_nothing(r):
... r # r is of type Nothing[str]
```
Renders like so:
Usage:
>>> r: Maybe[int, str] = get_a_maybe() >>> if is_some(r): ... r # r is of type Some[int] ... elif is_nothing(r): ... r # r is of type Nothing[str]
It seems that lazydocs simply needs at least one space indent from the triple-backticks in order to not wrap the lines, so I'm going to make that slight adjustment to fix the rendering.
from maybe.
Related to this, I submitted a bug report and a feature request to lazydocs:
from maybe.
Related Issues (11)
- Implement `as_maybe` and `as_async_maybe` HOT 2
- PyPI release HOT 6
- Room for an `Iter` package? HOT 3
- create `Maybe` from value HOT 2
- Why two separate libraries for `result` and `maybe` HOT 2
- Change default branch to `main`. HOT 3
- Add `ok_or` and `ok_or_else` methods HOT 8
- Update github actions
- Add changelog
- Method signatures should be same across both variants
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 maybe.