Comments (2)
Thanks for reporting!
TL;DR
get the latest changes on master and make a slight modification to your code
from vue import *
class Parent(VueComponent):
@computed
def my_computed(self):
return 'Parent'
template = '<div>Hello {{my_computed}}!</div>'
class Child(Parent):
@computed
def my_computed(self):
value = super().my_computed()
return f'Child of {value}'
Child('#app')
There are actually two bugs when using f'Child of {super().my_computed()}'
- the one you discovered with the
__mro__
one you discovered
This seems to be a bug in the brython version used by vue.py (3.8.9), when usingsuper()
within a f-string.
class A:
def foo(self):
return "A"
class B(A):
def foo(self):
return f"{super().foo()}"
raises the same exception
but this works
class A:
def foo(self):
return "A"
class B(A):
def foo(self):
value = super().foo()
return f"{value}"
the latest brython version 3.11.1 seems to have fixed this. But there is some work required on vue.py to be able to bump the version.
- computed properties where not callable in vue.py
for this issue I just push a fix to master
from vue.py.
Wow this is super!
from vue.py.
Related Issues (20)
- Containers in VueX are Javascript objects HOT 4
- store.commit causes errors HOT 2
- Error when integrating with vue-socketio HOT 2
- Proper way to integrate a Javascript Vue plugin HOT 3
- flask not launching HOT 13
- How to do a simple ajax request HOT 2
- front-end and back-end confusion HOT 7
- How to correctly specify the --src parameter HOT 1
- any way to integrate it with pyscript to remain in full python echosystem HOT 1
- Exceptions when accessing undefined values in Bridged Dicts
- Vue-SocketIO callback issues HOT 1
- VueCli deploy Flask is not working HOT 1
- Whats the difference between @watch and @computed? HOT 1
- Mixin pattern use case HOT 7
- i am getting error while running vue-cli deploy flask HOT 4
- is there a way to hot reload when the file is saved . will automatically change in the browser HOT 1
- How to use Vuetfy , or Css Framework in Vue Like VUE BASED
- example code for Router with Parameter HOT 1
- add NPM Module features like datatable Js , sweetAlert js to run on vuepy
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 vue.py.