GithubHelp home page GithubHelp logo

Comments (4)

parth-verma7 avatar parth-verma7 commented on September 26, 2024

@Agent-Hellboy Can you please provide with any other example containing multiple dataClasses

from trace-dkey.

Agent-Hellboy avatar Agent-Hellboy commented on September 26, 2024

@Agent-Hellboy Can you please provide with any other example containing multiple dataClasses

make a new instance of dataclass and pass it inside the dictionary

from dataclasses import dataclass

@dataclass(frozen=True)
class Data:
    a: int
    b: int

data1 = Data(1,2)
data2 = Data(2,3)

dict = {data1: "firstdata",data2:"seconddata"}

print(dict)

from trace-dkey.

parth-verma7 avatar parth-verma7 commented on September 26, 2024

@Agent-Hellboy I would like to work upon this issue. Can you please assign it to me.

from trace-dkey.

Agent-Hellboy avatar Agent-Hellboy commented on September 26, 2024

sure, go ahead and raise a PR.

from trace-dkey.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.