Browse Source

[FIX] Modify details

tags/v0.3.2
Gene 3 years ago
parent
commit
4e11ededdd
2 changed files with 5 additions and 5 deletions
  1. +3
    -3
      learnware/market/anchor.py
  2. +2
    -2
      learnware/market/base.py

+ 3
- 3
learnware/market/anchor.py View File

@@ -1,11 +1,11 @@
import os import os
from typing import Tuple, Any, List, Union, Dict from typing import Tuple, Any, List, Union, Dict


from .base import LearnwareMarket
from .base import BaseUserInfo, BaseLearnwareMarket
from ..learnware import Learnware from ..learnware import Learnware




class UserInfo:
class UserInfoWithAnchors:
"""Record the user info """Record the user info
""" """


@@ -26,7 +26,7 @@ class UserInfo:




class AnchorMarket(BaseMarket):
class LearnwareMarketWithAnchors(BaseMarket):
"""Add the anchor design to the BaseMarket """Add the anchor design to the BaseMarket
.. code-block:: python .. code-block:: python


+ 2
- 2
learnware/market/base.py View File

@@ -45,13 +45,13 @@ class BaseUserInfo:
return self.stat_info.get(name, None) return self.stat_info.get(name, None)




class BaseLearnwareMarket:
class BaseMarket:
"""Market for Learnware """Market for Learnware


.. code-block:: python .. code-block:: python


# Provide some python examples # Provide some python examples
learnmarket = LearnwareMarket()
learnmarket = BaseMarket()
""" """


def __init__(self): def __init__(self):


Loading…
Cancel
Save