Comments (2)
https://travis-ci.com/github/nekokatt/hikari/jobs/385663836
https://travis-ci.com/github/nekokatt/hikari/jobs/385663837
Seems to be more prevalent on ARM devices.
From that traceback it just looks like however you are comparing the two mappings is considering insertion order or something.
AssertionError: assert <hikari.utili...xffffa41dce50> == {'bash': 'bun...om': 'buebue'}
I'd suggest changing that dict around in order and seeing what happens maybe.
def __eq__(self, other):
if not isinstance(other, typing.Mapping): # slow?
return False
if len(other) != len(self):
return False
for key in self:
if key not in other:
return False
return True
would probably fix this tbf.
from hikari.
https://github.com/python/cpython/blob/3.8/Lib/_collections_abc.py#L685-L687 implies the __eq__
you are deriving is considering if items() == items()
.
ItemsView does not implement a custom __eq__
by the looks, nor inherit one other than for object
.
My suggestion would probably be to either override __eq__
in https://github.com/nekokatt/hikari/blob/master/hikari/utilities/mapping.py#L51 or implement a custom ItemsView, KeysView, ValuesView. First is probably a better thing to do IMHO.
from hikari.
Related Issues (20)
- Forum channels unrecognised HOT 2
- Localization attribute missing for CommandChoice HOT 1
- typing context not exiting after a webhook is called HOT 2
- Asyncio SSLProto error HOT 3
- Add support for comparing roles HOT 1
- Editing the icon of a server fails HOT 1
- Components shutdown before completion of event listeners
- Option to only cache the bot member HOT 1
- Consider removing upper bound constraint on python version HOT 4
- Support editing community features in `edit_guild` endpoint
- Implement monetization
- Implement default select values
- Specialize InteractionCreateEvent
- Consistent BitEnum Naming HOT 1
- Switch to msgspec HOT 4
- Support sending voice messages HOT 2
- Consider using mkdocs material HOT 3
- `Member.joined_at` is now nullable due to breaking API change
- Sync `guilds.GuildFeature` to Official API
- Support Polls
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 hikari.