Comments (4)
Can you provide an example of your code and what the error is? (also version information etc)
from spock.
from spock import SpockBuilder
from spock import spock
from spock import SavePath
@spock
class Simple:
only: int
save_path: SavePath = "/tmp"
def main():
test = SpockBuilder(Simple, lazy=True)
test = test.generate()
print(test)
if __name__ == '__main__':
main()
This code works on master
from spock.
thanks! i didn't know i have to import SavePath :)
from spock.
Closing unless you have any other issues
from spock.
Related Issues (20)
- Double nested class type with Enum fails to identify the str to Enum map
- Nested Configuration via CLI HOT 5
- Nested config values are not updated with provided value in --config file HOT 20
- Update Docs from Portray to Docusaurus HOT 1
- Is there a reason why dependencies are pinned? HOT 4
- ax-platform==0.2.3 fails tests
- Default values of nested list with items is a spock class. HOT 2
- SavePath HOT 2
- Link to "Spock As a Drop In Replacement For Argparser" broken in docs HOT 1
- Spock-config has name clash with spock
- Is it possible to set a default namespace for command-line arguments? HOT 1
- SavePath from config.yaml file HOT 5
- Interpolation and Accessing environment variables and other resolvers inside the config.yaml similar to OmegaConf HOT 3
- Support for SM HyperparameterTuner
- Convert individual namespace within a Spockspace to a dictionary
- Nested List, Tuple error HOT 1
- Unable to use newer syntax of typing HOT 1
- Spock seems to be unusable, when running inside a jupyter notebook. HOT 2
- Remove config as a required argument 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 spock.